Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【开源自荐】网站与原生应用的界限 #3302

Open
daGaiGuanYu opened this issue Jul 25, 2023 · 4 comments
Open

【开源自荐】网站与原生应用的界限 #3302

daGaiGuanYu opened this issue Jul 25, 2023 · 4 comments
Labels

Comments

@daGaiGuanYu
Copy link

网站和原生应用的界限,从技术的角度上说,早就模糊了。
在网站里使用摄像头、麦克风、GPS 早都不是新鲜事了。

但实际上,网页应用(web app),或者说“把网页当作 app”来使用,却不多见,至少国内相当少见。
有人说,是因为 web app 需要:1. 先打开浏览器;2. 再打开 web app。这样两步很不方便。
但 pwa(progressive web app)是可以安装到本地的,而且是一套代码可以在 windows、macos、ios、android、linux 上运行。
(或者说可以在“可安装现代浏览器的操作系统”上运行)

于是我很早就想试试,pwa 在技术上能做到什么程度。
结果是很另我惊喜,原来我太孤陋寡闻了。
我做了一个实验性的网站项目,一个 epub 电子书阅读器:https://ppz-pro.github.io/mess-reader/
主要的特点就是:

  • 可安装(双击桌面图标,而不通过浏览器打开)
  • 打开本地文件(就像 word 一样,通过双击 doc 类型的文件开启应用)
@James-Lam
Copy link

太强了!

@daGaiGuanYu
Copy link
Author

对了需要补充一点的是
做这种网站使用的技术都是最最普通的网站技术
会用老三套 html、css、js 就可以做 pwa 了
一个前端程序员,不新学任何技术,加一个配置文件(类似这种),马上就可以把一个网站变成可安装在电脑或手机上的 app

@ruanyf ruanyf added the weekly label Jul 27, 2023
@yenche123
Copy link

@daGaiGuanYu 体验了一下,真的很猛!

成功在本地文件夹里双击 epub,打开你做的 WebApp👏

image

@daGaiGuanYu
Copy link
Author

@yenche123 我写的东西非常少,主要是现在的前端技术发展得太完善了,是前端猛~
其实这还是个半成品哈哈,后面会慢慢完善

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants