2019年1月11日 星期五

Cannot read property '$$nextSibling' of null

緣由: 執行某個指令出現此錯誤訊息

解法:
$timeout(function () {
               // 造成錯誤的指令
}, 100);

2019年1月10日 星期四

透過工作排程器定時呼叫 url

程式 : powershell.exe (版本須為3以上)
引數 : -command "Invoke-WebRequest -URI \"http://...\" -Method Post"

2019年1月4日 星期五

Entity Framework 建立新物件並儲存後馬上取得關聯資料

使用 CreateProxy 建立物件,不要直接 new var newmodel = _contextXXX.CreateProxy<yyy>(); ... _contextXXX.yyy.Add(newmodel); await _contextXXX.SaveC...