Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 495283

关于=>使用的问题

$
0
0

onLoad: function ()
{
var _func = (function(){cc.log(this.node.name);}).bind(this.objB);
_func();
},

如何将_func这个方法写成=>格式的?

还有就是=>是不是只能用于return操作?


Viewing all articles
Browse latest Browse all 495283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>