其他笔记-Electron代替品探索过程
⽬录
前⾔
Electron是基于 和 的,可以把前端代码打包成桌⾯应⽤的⼯具,使得JavaScript, HTML和CSS跨平台部署。
但是由于各种原因,不够精巧,体积太⼤,资源独占,发布不便,源码保护做的不好等等,所以不适⽤于某些场合。
最近要做嵌⼊式上位机开发,于是挨个测试⼀下。
替代品⼀览
发现 其实有超多替代品的,来源参考:
C# (.Net)
名称备注
分布式,云服务可⽤于物联⽹,更新不算勤
更多功能需要付费
(Pixel-Perfect Multi-Platform Applications with C# and WinUI)
(Build HTML Desktop Apps on .NET/.NET Core/.NET 5 using native GUI, HTML5, JavaScript, CSS) C++
名称备注
**
**
可⽤于嵌⼊式
语⾔接⼝丰富,轻量,但不知道对嵌⼊式的⽀持如何(9-15MB)
Dart
名称备注
移动应⽤开发,暂不考虑
Go
名称备注
5-10MB
Vue、Vuetify、React 前端⽀持,绑定简单
轻量、运⾏时占⽤低
Java
名称备注
JS
备注
(Similar to electron, )
(bundles a Node.js runtime and leaves the HTML rendering to the operating system‘s webview) (chromium module is replaced with either user’s web browser or built-in browser component. Node run-time is replaced with a
lightweight web server which exposes native OS functionality)
(does the same to desktop that React Native did to mobile, based on github/parro-it/libui-node)
(Cross-platform React Native Desktop port based on Qt framework)
(creating native desktop applications based on Vue.js, based on github/parro-it/libui-node)
(powered by Qt5, [NodeGui-React]
(library for cross-platform app development using React and React Native)
(Vue.js based framework, which lets web developer to quickly create responsive websites/apps)
(Is a 5MB HTML/CSS/JS (ES6) runtime aimed as a direct Electron replacement)
Python
名称备注
⽀持嵌⼊式
其他的就暂且不说了。
sciter测试
在下载sciterJS的sdk,阅读doc⽬录下的⽂档。
⽂档不⽀持中⽂,开发需要对照他的⽂档来写。
不保护源码,⽀持C API,所以在跨平台环境下效果不错。
使⽤的quickJS作为引擎,轻量。
官⽅给的例⼦是windows平台的。linux下13~19MB。
"bin/windows/" "samples/calc/index.html"
electron vue教程
如要使⽤,最好后台⽤c开发。
看了⼀下对React是可以⽀持的。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。