Home >Web Front-end >JS Tutorial >How to close the script tag when referencing an external script_Basic knowledge

How to close the script tag when referencing an external script_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 17:03:091043browse

When referencing an external script, the correct way to close the script tag is as follows:

Copy the code The code is as follows:



There is a problem with the self-closing writing method (tested on IE11, chrome 31.0, Not supported by ff 25.0):
Copy code The code is as follows: