This week, it didn't feel as difficult as it did at the beginning. But there are always various problems when writing. For example: when the login page obtains user information, _id is required. I don't know how to get this _id up.
Later, I asked other people, saying that first use localStorage to create a locally stored name/value pair, and that's it.
In the past two days, there is also a problem, that is, when I log in, my displayed nickname does not change with the information I modify. Place
Fortunately, I wrote userNam.value again when modifying the information. Right or not, the effect is here.
Originally, ES6 was used for the assessment, but it seems to be basically useless to me. There is a [``] that introduces a new string. Its function is
1. Declaration
let str=`I am also a string`;
console.log(str,typeof str);
2. Line breaks can appear directly in the content
let str=`<ul>
<li>李瓒</li>
<li>宋冉</li>
<li>White olive tree</li>
</ul>`;
3. Variable splicing
let lovest='Li Zan';
let out=`${lovest} from the white olive tree`;
console.log(out);