1.
<script>
var str="hi:hello";
var ss=str.split(':');
alert(ss[0]+'\n'+ss[1]+'\n'+'Length:'+str.length);
</script>2. if /I "%2" EQU "V" goto VALIDATION /i switch forces string comparisons to ignore case
%2 indicates the second parameters
EQU is the operator:equal to
goto command directs the batch program to a line identified by a label which is VALIDATION
VALIDATION is the label
<script>
var str="hi:hello";
var ss=str.split(':');
alert(ss[0]+'\n'+ss[1]+'\n'+'Length:'+str.length);
</script>2. if /I "%2" EQU "V" goto VALIDATION /i switch forces string comparisons to ignore case
%2 indicates the second parameters
EQU is the operator:equal to
goto command directs the batch program to a line identified by a label which is VALIDATION
VALIDATION is the label
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货