GithubHelp home page GithubHelp logo

wzaen / duijs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zentelfong/duijs

0.0 0.0 0.0 8.61 MB

duilib js版

License: MIT License

JavaScript 10.26% C++ 86.49% C 0.36% Lua 0.42% TypeScript 1.90% CSS 0.55% Batchfile 0.01%

duijs's Introduction

​ duijs(duilib for javascript),使用javascript来编写windows客户端程序。为了方便duilib者使用本库,JS中的函数命名和duilib库的C++函数名一致,并提供了接口声明文件,在vscode中接口可以自动补全。duilib使用的是DuiLib_Ultimate版本,并修改了部分代码。

特性:

  1. 使用轻量的quickjs(支持ES2020标准)引擎;

  2. 导出了duilib的90%以上的接口供JS调用(注:绘制相关接口未导出);

  3. 有完整的js接口文件,良好的编辑器代码提示;

  4. 控件的事件无需在Notify函数中处理,通过控件属性绑定函数名称来处理;

  5. 支持异步本地存储,读写操作不影响界面线程;

  6. 支持http接口请求;

  7. JS代码可以打包到资源文件中,换肤更灵活;

  8. 控件属性支持css样式;

  9. 支持编译成32位或者64位软件;

  10. JS引擎支持加载dll插件;

  11. JS调试输出工具,方便测试程序;

  12. 支持编写typescript后编译为javascript运行;

  13. jsx支持,当添加list的element时,可以直接在js代码中使用xml的写法生成element。(注意标签的首字母需要小写)

JSX

在typescript中使用jsx时,需要将ts后缀名改为tsx,tsc编译后会生成后缀名为jsx的文件,import时需注意后缀名。

duijs's People

Contributors

zentelfong 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.