wechat/app
app module provides miniprogram app
bindings
it also includes a few global utility functions
details in wechat document
Functions
pub fn decode_uri_component(uri: String) -> JsObject
global function decodeURIComponent
pub fn run_app(o: JsObject) -> Nil
app constructor App({...})
the main entry point for miniprogram
pub fn set_interval(
callback cb: fn(JsObject) -> Nil,
delay d: Int,
with o: JsObject,
) -> Int
global function setInterval(...)
pub fn set_timeout(
callback cb: fn(JsObject) -> Nil,
delay d: Int,
with o: JsObject,
) -> Int
global function setTimeout(...)