Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
313 views
in Technique[技术] by (71.8m points)

javascript - Sails自动删除我在布局中添加的资源(Sails autodelete a resouce I added in layout)

I'm using Select2 in a sails project ( https://select2.org/getting-started/installation ).

(我在Sails项目( https://select2.org/getting-started/installation )中使用Select2。)

For that I added the following lines in my layout.ejs

(为此,我在layout.ejs中添加了以下几行)

<link href="https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/js/select2.min.js"></script>

But when I run the application with the command sails lift the two lines are automatically deleted from the layout.ejs.

(但是,当我使用命令sails lift运行该应用程序时,这两行会自动从layout.ejs中删除。)

I know it's not the editor (I'm using vscode) because I test that looking for the problem.

(我知道它不是编辑器(我使用的是vscode),因为我会测试以查找问题。)

Do you know what I can do to solve that?

(你知道我能做些什么来解决这个问题吗?)

  ask by dilver translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...