Giter VIP home page Giter VIP logo

awtk-quickjs's Introduction

awtk-quickjs

awtk quickjs bindings.

准备

1.获取awtk并编译

git clone https://github.com/zlgopen/awtk.git
cd awtk; scons; cd -

2.获取awtk-quickjs并编译

git clone https://github.com/zlgopen/awtk-quickjs.git
scons

编译linux-fb版本,请修改SConstruct

#for pc
#sys.path.insert(0, '../awtk/')

#for linux-fb
sys.path.insert(0, '../awtk-linux-fb/')

更新绑定

./sync.sh

在非bash终端(如Windows平台的cmd.exe),需要根据sync.sh的内容手工执行相应的命令。

运行

./bin/runScript demos/xxxx.js

请把xxxx.js换成具体的js文件。

文档

js绑定原理与示例

本文以Linux/MacOS为例,Windows可能会微妙差异,请酌情处理。

重要通知

为了让AWTK-WEB和AWTK-JS对外提供的API保持兼容,AWTK-JS做了下列修改:

  • 所有的类均增加前缀T,以避免AWTK的类名和浏览器中的类名冲突。

  • print函数更名为console.log。

提供了一个vim脚本(demos/vim_rename),用于更新应用程序。

如果希望自己的应用程序,同时支持AWTK-JS和AWTK-WEB,还需要注意下列事项:

  • 避免使用模态对话框。

  • 避免使用动态GIF图片。

awtk-quickjs's People

Contributors

xianjimli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.