When previewing the page, the data is not stored in the database, but you have to open a page for preview and ask Aunt Zhong, and it turns out that this is how it is done.
1. Parent page
The code copy is as follows:
<input type="text" id="name" value="zhangsan"/>
<a href="a.html" target="_blank">Preview</a>
2. The child page, that is, a.html, get the value of the text box in the parent page
The code copy is as follows:
$(function(){
console.info(window.opener.document.getElementById("name").value);
});
In this way, what comes out of the console is the value of the parent page text box
Don't hurry says have no choice, perhaps, next intersection will meet hope.