mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
16 lines
738 B
JavaScript
16 lines
738 B
JavaScript
Volcanos("user", {help: "用户模块",
|
|
toast: function(text) {},
|
|
carte: function(event, cb) {},
|
|
alert: function(text) {alert(JSON.stringify(text))},
|
|
confirm: function(text) {return confirm(JSON.stringify(text))},
|
|
prompt: function(text, cb) {(text = prompt(text)) != undefined && typeof cb == "function" && cb(text); return text},
|
|
reload: function() {confirm("重新加载页面?") && location.reload()},
|
|
|
|
isWeiXin: navigator.userAgent.indexOf("MicroMessenger") > -1,
|
|
isMobile: navigator.userAgent.indexOf("Mobile") > -1,
|
|
isIPhone: navigator.userAgent.indexOf("iPhone") > -1,
|
|
isMacOSX: navigator.userAgent.indexOf("Mac OS X") > -1,
|
|
isWindows: navigator.userAgent.indexOf("Windows") > -1,
|
|
})
|
|
|