Home  >  Article  >  Web Front-end  >  js的[defer]和[async]属性_javascript技巧

js的[defer]和[async]属性_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:30:181063browse

[defer]

可以在

复制代码 代码如下:

 

[async]

使用async属性加载JavaScript,这样整个脚本就可以异步加载和执行。

大家有没有对 javascript的[defer]和[async]属性有所了解了呢,有什么疑问可以留言,大家一同探讨

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn