dcloudio / dcloudio/mui

1.6 版本 出现 mui.back 无法绑定问题

Open
#76 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13.5k
Forks
6.5k
PR merge metrics
No merged PRs in 30d

Description

本人也是新手,望慢慢看知

有如下网页代码

``` html




正在启动应用...



(function($) {
$.init();
$.plusReady(function() {
var count = 0;
$.back = function(event) {
count++;
if (count > 1) {
plus.runtime.quit();
} else {
plus.nativeUI.toast('再按一次退出应用');
}
setTimeout(function() {
count = 0;
}, 1000);
return false;
};
});
}(mui));

```

在Android 4.4.2 下 因本机是虚拟按键,发现虚拟按键并没绑定此退出事件,点按并无反应,最后查看官网案例 login 发现用的是 1.5版本,换其1.5版本,事件即可绑定,望查明

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.