随笔分类 - Javascript
摘要:jQuery UI dialog: https://jqueryui.com/dialog/ Semantic UI https://semantic-ui.com/modules/modal.html
阅读全文
摘要:jQuery可以用 isFunction() 來進行判斷 如果僅使用Javascript可以使用以下的方法
阅读全文
摘要:參考自: https://love2dev.com/blog/javascript-remove-from-array/ 1. Removing Elements from End of Array 2. Removing Elements from Beginning of Array 3. Us
阅读全文
摘要:參考自: https://dotblogs.com.tw/shihgogo/2017/05/31/090831
阅读全文
摘要:參考自:https://cythilya.github.io/2017/09/10/jquery-attr-vs-prop/ ** 由於 attribute 只要有設定 HTML 特性 checked,不論等號後面的值是什麼,甚至不帶值,皆會得到 checked,意即只要設定特性名稱即可。若要取消勾
阅读全文
摘要:var rounded = Math.round( number * 10 ) / 10; // round to one digit var rounded = Math.round( number * 100 ) / 100; // round to two digit function round(value, precision) { var multiplier = Math.pow(1
阅读全文
只有注册用户登录后才能阅读该文。
摘要:當頁面第一次load processing.dt (processing == false) => xhr.dt => page.dt => draw.dt => init.dt => processing.dt (processing == true) 當換到另外一頁 processing.dt
阅读全文
摘要:當使用dataTable.NET時,可以通到簡單的setting來添加一個search box進行全表格的檢索。 當在search box輸入時,每輸入一次按鍵都會觸發 "seatch.dt"的function, 屏蔽的方法是將在search box上的keyup event進行unbind, 再b
阅读全文
摘要:dataTable.NET是一個jQuery的plug in 第三方的library, 用來實現web page中table的interaction controls, 另外最近有在用的還有Telerik UI的RadGrid(action需要postback). dataTable.NET可以通過
阅读全文
摘要:version: fancybox 2.1.4
阅读全文
摘要:想要ignore link "#" method, 當click一個link時,page不要跳轉,可使用 來代替 也可以使用上面例子中提到在,onclick事件觸發後的function中 return false; 另外一種方法就是使用 event.preventDefault(); 取消事件的預設
阅读全文
摘要:https://datatables.net/examples/server_side/simple.html 當頁面上要顯示的數據在10萬筆以上時,可以使用server-side processing. 這樣在change entries, paging, sorting的時候,會通過事先定義好的
阅读全文
浙公网安备 33010602011771号