hjg
2024-07-09 30304784e82d4bba24121328da8eb8490aec4f4f
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, {
    _title: function(title) {
        var $title = this.options.title || ' '
        if( ("title_html" in this.options) && this.options.title_html == true )
            title.html($title);
        else title.text($title);
    }
}));
 
(function() {
    window.ISIE = ("ActiveXObject" in window);
})()
 
function getpath(){return '';}
 
$(function() {
    if (typeof I != 'undefined' && I.keyword) {
        I.keyword.on(ISIE ? 'keydown' : 'keyup', function (event) {
            if (event.keyCode == 13) {
                $(this).select();
            }
        });
        I.keyword.focus(function() {
            $(this).select();
        })
    }
})
 
$.validator.addMethod("isPlateNumber",function(value,element){
    var platenumber = /^[\u4e00-\u9fa5]{1}[A-Za-z]{1}[A-Za-z_0-9]{5,6}$/;
    return this.optional(element) || platenumber.test(value);
},"请输入正确的车牌号!");
 
$.validator.addMethod("isPhone",function(value,element){
    var mobile = /^[1][0-9]{10}$/;
    return this.optional(element) || mobile.test(value);
},"请输入正确的手机号!");
 
if (!Array.prototype.indexOf){
  Array.prototype.indexOf = function(elt /*, from*/){
    var len = this.length >>> 0;
 
    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? Math.ceil(from)
         : Math.floor(from);
    if (from < 0)
      from += len;
 
    for (; from < len; from++){
      if (from in this && this[from] === elt)
        return from;
    }
    return -1;
  };
}