function urlController(url) { var _url = url.split("?")[1]; if(!_url){ return {}; } var windowHref = _url.split("&"); var obj = {}; for(var i = 0 ; i < windowHref.length;i++){ var arr = windowHref[i].split("="); obj[arr[0]] = arr[1] } return obj; }
标签:for amp turn control url var pos ++ win
function urlController(url) { var _url = url.split("?")[1]; if(!_url){ return {}; } var windowHref = _url.split("&"); var obj = {}; for(var i = 0 ; i < windowHref.length;i++){ var arr = windowHref[i].split("="); obj[arr[0]] = arr[1] } return obj; }
标签:for amp turn control url var pos ++ win
原文地址:https://www.cnblogs.com/founderswitch/p/8469464.html