JQ 向指定文本内添加文本

图片说明

这个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;

取到URL中的参数 添加到 a标签 尊敬的 后面 怎么实现。。新手 求大大教一下

var url=window.location.href;
var str=document.getElementById("a").innerHTML//给a加个id ,获取它
var str+=url;
document.getElementById("a").innerHTML=str;