![](/img/trans.png)
[英]Can you use both the async and defer attributes on a HTML script tag?
[英]how do you add attributes to script tag in jade e.g. async defer
我需要根据添加谷歌加一个按钮的文档添加异步和延迟属性。 我怎么用玉做这个?
<script src="https://apis.google.com/js/platform.js" async defer></script>
这对我有用:
script(async, defer, src='https://apis.google.com/js/platform.js')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.