Change URL parameters

前端 未结 26 2211
孤独总比滥情好
孤独总比滥情好 2020-11-22 08:40

I have this URL:

site.fwx?position=1&archiveid=5000&columns=5&rows=20&sorting=ModifiedTimeAsc

what I need is to be able to

26条回答
  •  悲哀的现实
    2020-11-22 09:18

    You can use this my library to do the job: https://github.com/Mikhus/jsurl

    var url = new Url('site.fwx?position=1&archiveid=5000&columns=5&rows=20&sorting=ModifiedTimeAsc');
    url.query.rows = 10;
    alert( url);
    

提交回复
热议问题