摘要: 勘误版function getQuery(key, url) { url = url || window.location.href; if (url.indexOf('#') !== -1) url = url.substring(0, url.indexOf('#')); var rts = [], rt; var queryReg = new RegExp('(^|\\?|&)' + key + '=([^&]*)(?=&|$|#)', 'g'); while ((rt = query 阅读全文
posted @ 2013-09-24 18:03 microsoftzhcn 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 示例:http://gzmsg.com/go/news.aspx#page=12var DF = {};(function () { var a = function () { var d, e = {}, b; d = window.location.hash.replace(/^#/, ""); if (d == "") { this.uhash = {} } else { d = d.split("|"); for (var c = 0; c < d.leng... 阅读全文
posted @ 2013-09-24 17:57 microsoftzhcn 阅读(1002) 评论(0) 推荐(0) 编辑