1
yhj
2025-03-31 9003044073373185511f1e2c901285a3287e7fa4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 初始化加载
mui.init();
// 加载 document 元素
var doc = document;
// 校验TEXT 必输
function inputValueNotNull(id, val) {
    // input 定位ID
    // val 校验数据
 
    if(!notNull(val)) {
        doc.getElementById(id).focus();
        return false;
    }
 
    return true;
}
// 校验是否为空
function notNull(str) {
    if(str != null && str != "" && str != undefined) {
        return true;
    }
    return false;
}
// 关闭当前页面
// 关闭自身窗口
function closeme() {
    var ws = plus.webview.currentWebview();
    plus.webview.close(ws);
}