How does a singleton pass data from one local function to another?

前端 未结 0 557
孤街浪徒
孤街浪徒 2021-02-02 09:18
var SingletonFactory = (function () {
  var products = null;
  return {
    fetchData: function (data) {
      products = data;
    },

    getData: function () {
               


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