Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 KineticJS 的新手,文档很差,所以我在制作这两个示例时遇到了一些困难:
http://jsfiddle.net/jure/xUEse/
http://jsfiddle.net/jure/jgrpx/
他们怎么了?
不知道为什么第一次鼠标移动给出未定义,但你的 if 语句应该是if(p!="undefined")orif(typeof p!=undefined)和 not if(typeof p!="undefined")。
if(p!="undefined")
if(typeof p!=undefined)
if(typeof p!="undefined")