📜  html 注入 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:11.051000             🧑  作者: Mango

代码示例1
var userposition=location.href.indexOf("user=");
        var user=location.href.substring(userposition+5);
        document.getElementById("Welcome").innerHTML=" Hello, "+user;