|||Antonidas - H ||| 0.21 || 3000 || 正常| c |
||Blackhand - A || 0.15 | 5000 | 正常|| a |||
||Destromath - H || 0.12 | 2000 | 关闭|| h |||通过查找Antonidas - H / Destromath - A / Destromath - H
判断是[正常]二个字得到 这段中得到二个值
0.21和3000
0.15和5000
判断是[关闭] 不理会~~
||Blackhand - A || 0.15 | 5000 | 正常|| a |||
||Destromath - H || 0.12 | 2000 | 关闭|| h |||通过查找Antonidas - H / Destromath - A / Destromath - H
判断是[正常]二个字得到 这段中得到二个值
0.21和3000
0.15和5000
判断是[关闭] 不理会~~
解决方案 »
- 怎么用正则取到这一行的数据?
- JS自己做弹出层,类似webgame中的游戏弹出层
- 谁能帮我解开这个javascript.encode文件
- 有一组checkbox,名字各不相同,怎样得到所有这些checkbox的名字,
- 如何更新IFRAME中的页面?
- 小问题!!!
- 超级入门问题!
- 客户端页面颜色设置面板PagecolorPanel(仿EditPlus的颜色设置)
- 请问"var p=tdObj.previousSibling;"中previousSibling是何含义?(javascript中)
- 网页中有没有tab标签选项卡控件,不同的选项卡对应不同的URL
- javascript中有没有办法能够得到一个页面绝对大小???
- 帮我看看,出现Server未定义错误
window.onload = function()
{
var s="¦ ¦ ¦Antonidas - H ¦ ¦ ¦ 0.21 ¦ ¦ 3000 ¦ ¦ 正常 ¦ c ¦";
var re=/Antonidas - H.*正常|Blackhand - A.*正常|Destromath - H.*正常/;
var s1=re.exec(s);
if (s1==null)
{
document.writeln("不干啥");
}
else
{
var re2=/[\d\.]+/g;
s2_a=re2.exec(s1);
s2_b=re2.exec(s1);
document.writeln(s2_a+"和"+s2_b);
}
}
</script>
调式输出 0.21和3000