<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="Content/bootstrap.css" rel="stylesheet" />
<script src="Scripts/jquery-3.3.1.min.js"></script>
<script>
$(function () {
var str = decodeURI(GetId());
alert(decodeURI(GetId()));
$("#Text1").val(str);
})
function GetId() {
var Id = window.location.search;
Id = Id.split("?")[1].split("=")[1];
return Id;
}
</script>
</head>
<body>
<input id="Text1" type="text" />
</body>
</html>
dapper修改
最新推荐文章于 2021-03-02 10:38:00 发布