Home > Net >  An HTML to another HTML page value problem, help me
An HTML to another HTML page value problem, help me

Time:11-11



List. The HTML page after selection table, click on the button, and the new data in the Add. "home page" on the HTML page that position behind the display corresponding to the name of the table,
The code is as follows:
List. The HTML page code:


The Add. HTML page code:






But show not to come out, who help me ah

CodePudding user response:

Js form by value between
https://blog.csdn.net/hanjun0612/article/details/48827935

CodePudding user response:

Can use the url with the past oh, such as www.baidu.com? Id="value"

CodePudding user response:

Js form between the value using a URL? The method of parameter=value

CodePudding user response:

Many methods, the most commonly used is the url? XXX=XXX;
There are cookies sessionStorage

CodePudding user response:

Url value or cookies

CodePudding user response:

 



<script SRC="https://common.cnblogs.com/scripts/jquery-2.2.0.min.js" & gt; </script>


<body>


<script>
$(function () {
$(" # show "). The HTML (get string (" id "));
})
The function get string (a)
{
Var query=window. The location. The search. The substring (1);
Var vars=query. Split (" & amp;" );
for (var i=0; iVar pair=vars [I]. The split ("=");
If (pair [0]==a) {return pair [1]. }
}
return(false);
}
</script>



It's not OK?
  • Related