摘要: <!docytpe html><html><head><script src="http://files.cnblogs.com/skcleung/canvasproxy.js"></script><script>window.onload=function(){var PI=Math.PI, angle1s=PI/30, angle5s=PI/6, angle45=PI/2, angle360=PI*2;var cp=CanvasProxy(document.getElementById(" 阅读全文
posted @ 2012-07-05 17:11 simonleung 阅读(553) 评论(1) 推荐(0)
摘要: 使用canvas時,一般都是這樣子的:ctx.beginPath();ctx.moveTo(x,y);ctx.lineTo(x,y);......ctx.closePath();這樣寫好嗎?drawingproxy.js 就可以很方便的製作canvas.可使用鍊式方法: m1().m2().m3(); 重複方法簡化: m1()()(); 動態函式: $......$(n); 阅读全文
posted @ 2012-07-02 12:18 simonleung 阅读(419) 评论(1) 推荐(2)
摘要: 下載-支持FF,Chrome,Opera 阅读全文
posted @ 2011-10-02 10:59 simonleung 阅读(1021) 评论(2) 推荐(0)
摘要: <!docytpe html><html><head><style type="text/css" id="CSS3">img:hover{transition-property:transform;transition-duration:0.2s;transform:scale(2,2);transform-origin:0 0;}</style><script>"use strict";(function(){var ss=document.getElemen 阅读全文
posted @ 2011-09-20 22:59 simonleung 阅读(374) 评论(0) 推荐(0)
摘要: 參考文章:http://perfectionkills.com/understanding-delete/譯文:http://www.denisdeng.com/?p=858總結以下:1.在全局環境下,宣告的變量名稱和函數名稱會變成全局對象(即window對象)成員2.所有宣告的變量名稱和函數名稱都不可delete(但可覆蓋)3.沒有宣告的變量名稱是可以delete4.在IE(8), window對象(還有document和其他對象),成員是可加入但不可delete.var a=1;b=1; // Error in FF strict modewindow.c=1... 阅读全文
posted @ 2011-09-18 15:19 simonleung 阅读(296) 评论(2) 推荐(0)