Web front end - summary of problems encountered in work

1. Move the mouse to the input label, prompt: Please enter a valid value, and the two closest valid values ​​are x and x respectively.

Reason: When the type attribute of the input is number, the value in the input box is a decimal, and this problem occurs.

Solution: <input type="number" min="-999999999" max="9999999999" step="0.0000001" />

2. There are more unexpected blank nodes in the dom node

 

 

 

Reason: This is because there is a gap between the node and the node (it may be caused by copying the text first and then adding the label)

Solution: Delete the newline of the label, and then manually enter the newline.

3. Install backstop ( npm install -g backstopjs ) and report an error:

content:

ERROR: Failed to download Chromium r722234! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.

Reason: This is because of some PATH variable problems reported when installing the headless browser.

Solution: sudo npm install -g backstopjs --unsafe-perm=true --allow-root

4. Install the vscode plugin -----background, and vscode reports software damage.

Content: The code installation seems to be damaged, please reinstall

 

Reason: vscode may report this error when installing some unofficial, unsafe, custom and other plug-ins.

Solution: Install the vscode custom plug-in ---- Fix VSCode Checksums, that is to say, this Fix plug-in was born specifically for the error reporting of some custom vscode plug-ins.

Specific operation (mac environment):

       Input in the command window: code --install-extension lehni.vscode-fix-checksums, if an error is reported and the code command cannot be found, proceed to the next step:

       command+shift+p to open the input window, enter: code --install-extension lehni.vscode-fix-checksums, choose to install code in PATH (Install 'code' command in PATH)

       After the installation is complete, enter on the command line: code --install-extension lehni.vscode-fix-checksums, command+shift+p to open the input window, enter: Fix Checksums: Apply, close vscode, and open it again (do not restart, completely restart open) problem solved.

       

 

 

Guess you like

Origin blog.csdn.net/xishaoguo/article/details/110851187