本帖最后由 showbo 于 2014-06-26 16:48:47 编辑

解决方案 »

  1.   

    加上var申明变量,要不就是全局变量导致覆盖了        function selectList(selectId, selectBox) {
                this.selectId = getId(selectId);
                this.selectBox = getId(selectBox);
                if (typeof this.dbClick != 'function') {
                    selectList.prototype.dbClick = function () {
                      var  selectBox = this.selectBox;
                     var   selectId = this.selectId;
            selectList.prototype = {
                constructor: selectList,
                dbClick: function () {
                   var selectBox = this.selectBox;
                  var  selectId = this.selectId;