PSt*_*kes 0 jquery sublimetext2
我创建了一个sublime片段,它吐出了jquery文档就绪函数.当我开始在javascript文件中键入tab触发器时,它会出现在弹出窗口中,但是当我按Enter或tab时,不会显示任何代码.我尝试多次重启Sublime,但没有成功.
这是我的代码段.
<snippet>
<content><![CDATA[
$( document ).ready(function() {
$1
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jdocr</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Run Code Online (Sandbox Code Playgroud)
关于我做错了什么的任何想法?
$用斜杠逃脱jQuery\
<content><![CDATA[
\$( document ).ready(function() {
$1
});
]]></content>
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助.