赞
踩
我在javascript中使用strpos(string,string)函数.在Firefox,Opera和IE中页面加载正常,但在Chrome中我得到错误:未捕获的ReferenceError:没有定义strpos.我正在处理的页面是http://seniorproject.korykirk.com/0xpi2.php
使用haystack.indexOf(needle)
.
strpos不是ECMAScript语言规范ECMA-262第3版(通常称为javascript)的一部分
像Artelius写的那样,使用 haystack.indexOf(needle,start)或haystack.lastIndexOf(needle,start)(其中start是可选的)
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。