js - 从url中获取参数信息
var searchURL = window.location.search;
searchURL = searchURL.substring(1,searchURL.length);
this.param = searchURL.split("&")[0].split("=")[1];
学贵有恒,而行胜于言
var searchURL = window.location.search;
searchURL = searchURL.substring(1,searchURL.length);
this.param = searchURL.split("&")[0].split("=")[1];