$('#pag').on('click','.clickable',function(){
$this = $(this);
refreshClasses($(this).data('id'))
})
要求jq 1.7+版本
$this = $(this);
refreshClasses($(this).data('id'))
})
要求jq 1.7+版本
2018-03-22
.overlap中的透明要通過rgba設(shè)置才能使得筆記本顯示出來不是透明的
.overlap{
position: fixed;
left:0;
top: 0;
width:100%;
height: 100%;
/* background-color: black;
opacity: 0.5;*/
background-color: rgba(0,0,0,0.5);
/*display: none;*/
}
.overlap{
position: fixed;
left:0;
top: 0;
width:100%;
height: 100%;
/* background-color: black;
opacity: 0.5;*/
background-color: rgba(0,0,0,0.5);
/*display: none;*/
}
2018-01-23
最新回答 / Alice_hhu
說錯(cuò)莫怪哈~會(huì)不會(huì)是把渲染模塊的那段代碼寫在template前面了?以至于獲取不到template。要么就把template寫在渲染模塊的那段代碼之前,像下面這樣2個(gè)script標(biāo)簽的順序。要么把渲染模塊的那段代碼用$(function({}))包起來。<script id="template1" type="text/x-handlebars-template">????<div>...<div></script><script>????var...
2018-01-15
用法有點(diǎn)復(fù)雜,理解著學(xué)習(xí)稍微麻煩點(diǎn),建議更換別的模板引擎
2017-12-23
css 文件可以參照
https://gitee.com/EThunder/learning_2017/blob/master/1202_Handlebars/css/style.css
https://gitee.com/EThunder/learning_2017/blob/master/1202_Handlebars/css/style.css
2017-12-02