JavaScript Support
Running restrictions
For security reasons, dynamic execution of JS code is not allowed in Mini Programs, i.e.
- JS code execution using
eval
is not supported - The use of
new Function
to create functions is not supported- except for
new Function('return this')
.
- except for
ECMAScript Support
ES6 language features are supported, the following features are not supported:
- Promise
- Generator functions
- Timers