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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…