代码:

var obj = (function(a,b){a.prop = breturn a}(this,'hello'))测试:

console.log(obj.prop)输出:

hello[Finished in 0.4s]