修复多次初始化BUG
var InitSelect = 1; KuCity.prototype = { constructor: KuCity, //初始化 init: function() { if (InitSelect == 1) { initSelect++; this.creatItem(); this.tabChange(); this.citySelect(); this.inputSearch(); this.keySelect(); this.stopPropagation(); } },回复
给你修复了一个BUG,在第九十行。会导致重复初始化,点击事件多执行。
var InitStatus = 1; init: function() { if (InitStatus == 1) {} this.creatItem(); this.tabChange(); this.inputSearch(); this.keySelect(); this.stopPropagation(); },回复