需要聲明
//測試ok,直接使用str.endWith("abc")方式調用即可
String.prototype.endWith=
function
(str){
var
reg=
new
RegExp(str+
"$"
);
return
reg.test(
this
);
}
需要聲明
//測試ok,直接使用str.endWith("abc")方式調用即可
String.prototype.endWith=
function
(str){
var
reg=
new
RegExp(str+
"$"
);
return
reg.test(
this
);
}
<table id="uploadTable" width="100%" border="0"> <tr> <td> <s:file size="100" name=