Recently, I was writing the front desk. Through jq
writing, I have been complaining about jq
the weak foundation before, and now I am practicing. . . .
When running the page, you can uselive server
1. Install in vscode softwarelive server
2. html
Right click on the page, there is aopen with live server
3. The computer's default browser will automatically open a page:
4. When the interface is cross-domain, the backend needs to write the page address into the white list, but because the live server
page link port opened each time is different, so it is necessary to change the live server
starting port number at this time
5. Change live server
the startup port number
5.1 Use the shortcut key ctrl
+ ,
to open the settings panel
5.2 Enter live server
the keyword and switch to the workspace! ! !
5.3 click在 setting.json 中编辑
5.4 Add in the configuration file——"liveServer.settings.port": xxxx,
The key point is this line: "liveServer.settings.port": 64467,
the port number at this time can be negotiated with the backend to unify the port number.
After saving the configuration, right- html
click on the page again to execute open with live server
, and you will find that the port number has been changed.
Finish! ! ! A lot of accumulation, a lot of harvest! ! !