Git Product home page Git Product logo

weixin_demo's People

Contributors

lufylegend avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weixin_demo's Issues

因缺失变量定义导致的小程序开发工具内调试器报错问题

我尝试用lufylegend做了一个微信小程序,当我用这个工具打包到微信小游戏项目后,进行编译运行,编译器出现报错,而报错的部分主要和引擎有关。可能微信小程序使用的是ES6,这是一个规范更严格的JS版本,所以如果变量没有提前声明或者定义是无法直接使用的,这也是引擎内部报错的原因。

大致整理了一下我遇到的问题:

(以lufylegend-2.0.0.bete.js为参考文件)

2329行:变量m未定义
6546行:变量l未定义
6545行:变量obj未定义
6544行:变量i未定义

其实改起来很简单,就是提前定义或者声明一下就好。
不确定其他地方有没有出现这种小问题,可以尝试使用一些代码检测软件来帮忙修正。

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.