摘要: jQuery UI dialog: https://jqueryui.com/dialog/ Semantic UI https://semantic-ui.com/modules/modal.html 阅读全文
posted @ 2019-11-14 16:55 日光之下无新事 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1. var,意思是可變動的,因為欄位長度可變動,所以會額外花費2Byte去儲存地址2. n,支援UNICODE UCS-2字元,因為萬國編碼(支援中文字),所以1字儲存2Byte nvarchar:可變動長度的ncharvarchar:可變動長度的charnvarchar:可變動長度的ncharn 阅读全文
posted @ 2019-10-08 16:39 日光之下无新事 阅读(261) 评论(0) 推荐(0) 编辑
摘要: jQuery可以用 isFunction() 來進行判斷 如果僅使用Javascript可以使用以下的方法 阅读全文
posted @ 2019-10-08 10:49 日光之下无新事 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 參考自: https://love2dev.com/blog/javascript-remove-from-array/ 1. Removing Elements from End of Array 2. Removing Elements from Beginning of Array 3. Us 阅读全文
posted @ 2019-09-21 17:57 日光之下无新事 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 參考自: https://dotblogs.com.tw/shihgogo/2017/05/31/090831 阅读全文
posted @ 2019-09-19 10:29 日光之下无新事 阅读(349) 评论(0) 推荐(0) 编辑
摘要: <asp:TextBox ID="txtTransitDays" runat="server"></asp:TextBox> <asp:RegularExpressionValidator ID="TransitDaysRegexValidator" ControlToValidate="txtTransitDays" runat="server" ErrorMessage="Only posit 阅读全文
posted @ 2019-09-10 18:26 日光之下无新事 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 參考自:https://cythilya.github.io/2017/09/10/jquery-attr-vs-prop/ ** 由於 attribute 只要有設定 HTML 特性 checked,不論等號後面的值是什麼,甚至不帶值,皆會得到 checked,意即只要設定特性名稱即可。若要取消勾 阅读全文
posted @ 2019-09-03 20:10 日光之下无新事 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1. 使用縮進方式做為程式塊開始結束的標示,程式換行在行末尾加 "\" 2. 元祖(Tuple)數據類型,和List的不同是Tuple不能修改,優點是執行速度比List快,因為不能修改也就比較安全,團隊開發某些情況會用到。 3. Dict字典類型,若鍵有重複時,後面的建值會覆蓋掉前面的。 字典類型的 阅读全文
posted @ 2019-08-31 07:09 日光之下无新事 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 由於find之後,loop執行時間過長導致timeout, cusor失效 解決方式有以下幾種: 1. 使用batch_size() cursor = collection.find({}).batch_size(30) 2. 將取出的cursor轉為list result = list(colle 阅读全文
posted @ 2019-08-25 08:52 日光之下无新事 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-08-20 20:11 日光之下无新事 阅读(268) 评论(0) 推荐(0) 编辑