--- Yes, Vue have not learned it, I have to start learning small program, but caught a thing has been learning a bit tired (although Vue things to learn voluminous ...) ---
WXS is what? (Official documentation describes)
WXS (WeiXin Script) is a small scripting language program, combined WXML
, can build a structure of the page.
- WXS does not depend on the basis of the runtime library versions, it can run on all versions of the applet.
- WXS and JavaScript is a different language, have their own syntax, and JavaScript are not consistent.
- WXS operating environment and other JavaScript code is isolated, WXS can not call a function defined in other JavaScript files, nor to call the API applet provides.
- WXS can not function as an event callback component.
- Due to differences in the operating environment on the WXS iOS device applet 2 to 20 times faster than the JavaScript code. On the android device no difference between the two operating efficiency.
wxs- module
ES6 similar modules, use mainly in wxs in both
(Module.exports.mess = "111" may be)
WXS data types, less ES5 undefined and null, and more date Array (complex data types in es5 only object) with respect to
Base Class Library:
Number, Math, JSON, Global is similar to ECMAScript,
Console only the console.log () method, Date only Date.now (), Date.Parse () and Date.UTC () method of three
--- learn while writing ---