-
Notifications
You must be signed in to change notification settings - Fork 654
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
前端模板tpl引入widget的时候直接把widget中的require作为字符串处理了 #663
Comments
正确使用姿势应该是: |
s_loading作为一个模板组件存在,并不是js组件,而且s_loading希望首次加载直接render到页面,而不是异步运行 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我现在有个模块 比如
module(s_loading.html, s_loading.css)
,现在在一个模板文件里面(
tpl
)用link import
方式引入s_loading.html
然后我在
index.js
中用inline
引入这个tpl
append
到页面中,这个时候,require "s_loading.less"
其实是作为一个字符串处理的,并没有真正把s_loading.less
加载进来,想问下这种情况怎么处理?The text was updated successfully, but these errors were encountered: