Hbuilder中自带登陆模板,其中有这么一段
app.login(loginInfo, function(err) {
if (err) {
plus.nativeUI.toast(err);
return;
}
toMain();
});
请教网友,app指的是html5+提供的对象,有官方文档的链接么?
login方法的定义在哪里,我想具体看下
Hbuilder中自带登陆模板,其中有这么一段
app.login(loginInfo, function(err) {
if (err) {
plus.nativeUI.toast(err);
return;
}
toMain();
});
请教网友,app指的是html5+提供的对象,有官方文档的链接么?
login方法的定义在哪里,我想具体看下
1 个回复
Sychel - 从事物联网项目,基于java和GIS开发水利、烟草烘烤和智慧农业监控系统。
plus开头的是5+对象,http://www.html5plus.org/doc/h5p.html;
但是!!!!!和登录没有任何关系,只有plus.nativeUI.toast(err);是5+对象。app.login是app.js里面自己封装的js方法,不要扯5+这种底层功能;