2017年4月27日 星期四

[Bootstrap]將所有欄位disabled

$("#form2 :input").prop("disabled", true);

[jqGrid]欄位日期格式化

colModel: [
                 
                     {
                        name: 'CreateDate', width: 1, align: 'center', sortable: false,
                        formatter: "date",
                        formatoptions: { srcformat: "ISO8601Long", newformat: "Y/m/d A h:i" }
                      }
                   ]

顯示結果:2017/04/27 上午 11:22

Visual Studio JS intellisense 失效解決方式

  試了好久,發現到工具>選項>IntelliCode js項目設定啟用,重新開啟VS就正常了! 後來發現是TypeScript3.2版有問題停用,使用4.3版的TypeScript即可