作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
<分区>
Possible Duplicate:
Use the get parameter of the url in javascript
假设我有这个网址:
s = 'http://mydomain.com/?q=microsoft&p=next'
在这种情况下,如何从字符串中提取“microsoft”?我知道在 python 中,它将是:
new_s = s[s.find('?q=')+len('?q='):s.find('&',s.find('?q='))]
我是一名优秀的程序员,十分优秀!