原來可指定某Url 上的標籤來做局部更新
$("#tableYearSemSetUpList").load("/Test/Index #id");
2019年5月1日 星期三
[iCheck]動態載入頁面後iCheck失效解決方式
$("#divPanel").append(res);
在append後加入以下即可
//checkbox
$('input').iCheck({checkboxClass: 'icheckbox_flat-green'});
//radio
$('input').iCheck({ radioClass: 'iradio_flat-green' });
在append後加入以下即可
//checkbox
$('input').iCheck({checkboxClass: 'icheckbox_flat-green'});
//radio
$('input').iCheck({ radioClass: 'iradio_flat-green' });
[MVC] TextBoxFor 日期格式化
@Html.TextBoxFor(f => f.OpenDate, "{0:yyyy/MM/dd}", new { @class = "form-control" })
訂閱:
意見 (Atom)
Visual Studio JS intellisense 失效解決方式
試了好久,發現到工具>選項>IntelliCode js項目設定啟用,重新開啟VS就正常了! 後來發現是TypeScript3.2版有問題停用,使用4.3版的TypeScript即可