|
@@ -73,6 +73,17 @@
|
|
var globalUseDurationRecord = 0;
|
|
var globalUseDurationRecord = 0;
|
|
setInterval('globalUseDurationRecord += 1', 1000);
|
|
setInterval('globalUseDurationRecord += 1', 1000);
|
|
</script>
|
|
</script>
|
|
|
|
+ <script>
|
|
|
|
+ //解决startsWith、endsWith在webview上不能使用问题
|
|
|
|
+ String.prototype.startsWith=function(str){
|
|
|
|
+ var reg=new RegExp("^"+str);
|
|
|
|
+ return reg.test(this);
|
|
|
|
+ }
|
|
|
|
+ String.prototype.endsWith=function(str){
|
|
|
|
+ var reg=new RegExp(str+"$");
|
|
|
|
+ return reg.test(this);
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
</body>
|
|
</body>
|
|
|
|
|
|
</html>
|
|
</html>
|