Mik*_*e V 2 javascript string parse-platform
var shortLocString = locationString;
console.log("Index of dash in '" + shortLocString + "': " + shortLocString.indexOf('-'));
Run Code Online (Sandbox Code Playgroud)
每次打印这个:
Index of dash in '325–333 Avenue C, New York, NY': -1
Run Code Online (Sandbox Code Playgroud)
为什么我觉得这是一个愚蠢的事情,我在漫长的一天结束时失踪了?
谢谢您的帮助!
麦克风
| 归档时间: |
|
| 查看次数: |
565 次 |
| 最近记录: |