0
如何使用jQuery從.mustache文件讀取DIV ID?canjs使用jquery和小鬍子
例如 asdf.mustache
<div class="draggable">
<p>drag this here</p>
</div>
adminControl.js
define(['jQuery', 'can', 'ctbConfig','labelsConfig'], function(jQuery, can, ctbConfig,labelsConfig) {
$(".draggable").draggable();
}
這裏$( 「拖動」)可拖動()。不管用。
模板是否呈現? –