2013年9月12日

摘要: 写给自己字符串换行不能直接换行,需要在行尾加换行符"\"var a = "aabb"是不行的需要改成var a="aa\bb" 阅读全文

posted @ 2013-09-12 15:51 GreatFeihao 阅读(125) 评论(0) 推荐(0) 编辑

2013年9月9日

摘要: 不定期更新,给自己看,如果能帮到别人,我也很开心。1)好像 function中默认的两个参数d,和i,如果只有i,则i实际上是d 的内容。lineG.selectAll("line").data(function getdataForLineG(d,i) {alert(i);return d; }).enter().append("line");如果getdataForLineG(i),那么alert(i)出来的数据实际上是d;而getdataForLineG(d,i),则alert(i)出来的数据才是真正的i; 阅读全文

posted @ 2013-09-09 11:59 GreatFeihao 阅读(408) 评论(0) 推荐(0) 编辑

2013年9月5日

摘要: 作为一个新手,把资源写在这里。一个简介:http://www.html5china.com/HTML5features/WebGL/20111129_2985.html类似NEHE OPENGL教程的webGL教程http://learningwebgl.com/blog/?page_id=1217 阅读全文

posted @ 2013-09-05 16:16 GreatFeihao 阅读(450) 评论(0) 推荐(0) 编辑

摘要: 原链接http://www.khronos.org/webgl/wiki/WebGL_and_OpenGL_DifferencesWebGL and OpenGL DifferencesWebGL is based on the OpenGL ES 2.0 specification, and retains the semantics of OpenGL ES in order to maximize portability to mobile devices. There are some significant differences in behavior of similar API 阅读全文

posted @ 2013-09-05 16:03 GreatFeihao 阅读(1555) 评论(0) 推荐(0) 编辑