且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从URL抓取一个部分,并使用jQuery将其附加一个链接

更新时间:2023-02-26 14:18:38

最终弄清楚了我的问题.感谢所有给我时间的人

finally figured out my problem. Thanks to everyone who gave me their time

 $(document).ready(function() {

  var path = window.location.pathname;
  var query = window.location.search;
  $('a#print').attr('href', path + query + '&SQ_DESIGN_NAME=print');

});