How to output tag in JavaScript_javascript skills
May 16, 2016 pm 04:38 PMWhen '' pops up in How to output tag in JavaScript_javascript skills, How to output tag in JavaScript_javascript skills will mistakenly think that this is a closing tag, and an exception will occur.
Such as the following code
We used alert to pop up the '' string within the <script> block, but it was mistaken for an end tag and VIM changed color. Running results</script>
Because the string is regarded as the end tag, an exception occurs. Obviously this is not the result we want. We just need to process the code a little bit to achieve it.
Use the plus sign to link the string in '', '' 'ipt>' and see the results
The program is normal and the string '' pops up correctly. In How to output tag in JavaScript_javascript skills, if the string uses a plus sign, it equals connection, and the number uses a plus sign, which equals addition.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to implement an online speech recognition system using WebSocket and JavaScript

WebSocket and JavaScript: key technologies for implementing real-time monitoring systems

How to implement an online reservation system using WebSocket and JavaScript

How to use JavaScript and WebSocket to implement a real-time online ordering system

JavaScript and WebSocket: Building an efficient real-time weather forecasting system

Simple JavaScript Tutorial: How to Get HTTP Status Code

How to get HTTP status code in JavaScript the easy way

How to use insertBefore in javascript
