lufylegend / weixin_demo Goto Github PK
View Code? Open in Web Editor NEW利用lufylegend.js开发微信小游戏
利用lufylegend.js开发微信小游戏
我尝试用lufylegend做了一个微信小程序,当我用这个工具打包到微信小游戏项目后,进行编译运行,编译器出现报错,而报错的部分主要和引擎有关。可能微信小程序使用的是ES6,这是一个规范更严格的JS版本,所以如果变量没有提前声明或者定义是无法直接使用的,这也是引擎内部报错的原因。
大致整理了一下我遇到的问题:
(以lufylegend-2.0.0.bete.js为参考文件)
2329行:变量m未定义
6546行:变量l未定义
6545行:变量obj未定义
6544行:变量i未定义
其实改起来很简单,就是提前定义或者声明一下就好。
不确定其他地方有没有出现这种小问题,可以尝试使用一些代码检测软件来帮忙修正。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.