[About ES5]What's diff btw these two functions

var a1 = function (args) {

};


var a2 = function b (args) {

};

More explicit example about using the lib Three.js:

a1


cljs_exp.core.particleRender = (function cljs_exp$core$particleRender(context){

  context.beginPath();

  ...

  return context.fill();

});

a2


cljs_exp.core.particleRender = (function(context) {

  context.beginPath();

  ... 

  return context.fill();

});

And parse the param a1 or a2, will get different result.


var material_11537 = (new THREE.ParticleCanvasMaterial((function() {

  var obj11536 = {

    "color": cljs_exp.core.getRandomColor.call(null),

    "program": ** * cljs_exp.core.particleRender ** *

  };

  return obj11536;

})()));


茅侃侃
浏览 428回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript