摘要: 对从其他类获取的数据 要先进行数据安全的检测。 阅读全文
posted @ 2019-08-21 19:40 流星曳尾 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 找到对应协议在对应proto中的片段(片段的子也要提取),提出来 放到适合proto文件中(逻辑 || 功能近似协议聚集地) 转换成proto.js 替换 || 增加原有js内容 阅读全文
posted @ 2019-08-21 15:02 流星曳尾 阅读(195) 评论(0) 推荐(0) 编辑
摘要: parentNode.removeChildByTag(0); let childNode = new cc.Node(); parentNode.addChild(childNode); childNode.setTag(0);//用以删除 childNode.addChild(child1); 阅读全文
posted @ 2019-08-20 15:12 流星曳尾 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 把收到的数据做的有缩进 webstorm 的json文件 中 ctrl + alt + l(字母L) 阅读全文
posted @ 2019-08-20 10:30 流星曳尾 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 今天遇到了一个问题,就是有一个界面,在生成时之前请求数据,在界面中通过schedule 与unschedule不停查看本地是否收到此数据(通过发起request的Id),当收到之后刷新。 然后就引起了一个问题。界面弹出是有动画的,在动画从小到大的过程中收到数据,动画会卡顿,paint界面,然后动画继 阅读全文
posted @ 2019-08-15 16:43 流星曳尾 阅读(218) 评论(0) 推荐(0) 编辑
摘要: //arrayObject.splice(index,howmany,item1,.....,itemX) 语法 //测试代码let array;array = ['George','John','Thomas','James','Adrew','Martin'];cc.log('array = ' 阅读全文
posted @ 2019-08-15 14:16 流星曳尾 阅读(290) 评论(0) 推荐(0) 编辑
摘要: //array.find(function(currentValue, index, arr),thisValue) 方法说明let tempArray = [ {"key":100,"key2":"sdfsdf"},{"key":210,"key2":"dfgdg"},{"key":310,"ke 阅读全文
posted @ 2019-08-15 11:23 流星曳尾 阅读(3411) 评论(0) 推荐(0) 编辑
摘要: let stencil = new cc.Sprite(fileName);let clippingNode = new cc.ClippingNode();this.addChild(clippingNode);clippingNode.setStencil(stencil);clippingNo 阅读全文
posted @ 2019-08-14 17:52 流星曳尾 阅读(186) 评论(0) 推荐(0) 编辑
摘要: github掌握 cocos2d-js基础控件 armature 阅读全文
posted @ 2019-08-14 11:22 流星曳尾 阅读(136) 评论(0) 推荐(0) 编辑