酷店app

detail_guide.js 420B

1234567891011121314
  1. var qs = parseQueryString(window.location.href),origin;
  2. $().ready(function(){
  3. origin = qs.origin;
  4. document.title = detail_json[origin].title;
  5. $(".detail_content").html(detail_json[origin].content)
  6. })
  7. function parseQueryString(url) {
  8. var urlObj = {};
  9. var reg = /([^?=&]+)=([^?=&]+)/g;
  10. url.replace(reg, function($0, $1, $2) {
  11. urlObj[$1] = decodeURIComponent($2);
  12. })
  13. return urlObj;
  14. }