In JavaScript will self-invoked functions pass through the interpreter?

后端 未结 0 1449
悲哀的现实
悲哀的现实 2021-01-22 01:11
 var magicAPI = function(){
var state = {
   on: false
 };

 return {
   isOn: function() {
      return state.on;
    }
  };
 }();
 magicAPI.isOn;//

wi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题