3条回答 默认 最新
当作看不见 2016-10-13 13:21关注这个OK,获取get提交的第三个参数
var ur=window.location.href; var str=ur.split("?")[1].split("&")[2].split("=")[1] str="尊敬的"+str+"欢迎进入"//给a加个id ,获取它 console.log(str) document.getElementById("a").innerHTML=str;本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
