javascript - js获取的url参数的值怎么显示在arcgis server地图上?
迷茫
迷茫 2017-04-10 15:16:47
0
0
555

js获取url参数, 怎么调用它,显示在地图上呢?

var urlParams;
(window.onpopstate = function() {
var match,
pl = /+/g,
search = /([^&=]+)=?([^&]*)/g,
decode = function(s) {
return decodeURIComponent(s.replace(pl, " "));
},
query = window.location.search.substring(1);
urlParams = {};
while (match = search.exec(query))
urlParams[decode(match[1])] = decode(match[2]);
})();
  //urlParams的结果
urlParams = {
TextString: "1B024"
}
console.log(urlParams["TextString"]);

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!