读书人

解析 页面中的url,该如何解决

发布时间: 2013-02-24 17:58:56 作者: rapoo

解析 页面中的url
http://www.mumayi.com/android-27896.html

怎么能搞出来 评论的链接地址 例如 http://www.mumayi.com/plus/new_alldata.php?aid=27896&page=1
这个地址貌似错的。。。 最好把方法告知~~~ 谢谢
[解决办法]
解析伪静态这个JS做不了。除非你知道服务器是怎么配置的,你才好写相应的JS转换处理函数。
[解决办法]
http://www.mumayi.com/plus/new_comment.php?aid=27896&counts=8&page=2

少了counts参数。。这个请求是xhr发送的,其中counts和page用post提交,不过直接放到get参数中也行,你少了counts参数导致读不出其他页数的数据

读书人网 >JavaScript

热点推荐