Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在生成script标签上属性 #27

Open
hale1106 opened this issue Sep 23, 2016 · 0 comments
Open

如何在生成script标签上属性 #27

hale1106 opened this issue Sep 23, 2016 · 0 comments

Comments

@hale1106
Copy link

hale1106 commented Sep 23, 2016

需求是这样的
1、用的
`#script()
require("./hotCar")

end`

引用了一个js文件,但我想在页面渲染出来的时候给这个script标签上加一个属性,如data="type"
2、hotCar.js在生产环境会被合并到pkb/common.js里,那如果给common.js也加上data="type"属性呢
求解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant