2013年3月23日 星期六

windows 8 更新出現8024800A的錯誤而無法完成更新

windows 8 更新出現8024800A的錯誤,可參考如下的做法:

1.使用管理員權限打開命令提示字元
2.輸入net stop wuauserv後按enter
3.輸入ren c:\windows\SoftwareDistribution softwaredistribution.old後按enter
4.輸入net start wuauserv後按enter
5.輸入exit後按enter
6.重新執行windows update

資料來源:
http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_update/window-update-fails-with-code-8024800a/84d5d997-35a4-4035-b6e0-5de60d7aee39

2013年3月5日 星期二

jquery .height在chrome/safari無法抓到正確的數值

當使用jquery的$height()時.發現在chrome及safari無法抓到正常的高度.
經過google查詢.發現$(document).ready() 改用為$(window).load()就正常了.
兩個的差異如下:
$(document).ready()代表DOM已經完成讀取但不表示圖片已經讀取完成.
$(window).load()觸發在$(document).ready()之後且所有圖片已讀取完成.

資料來源:
http://littleshell-multimedia.blogspot.tw/2012/11/jquery-height-problem-in-chromesafari.html