狀態不宜做爲表維護,,由於有些是程序寫死的,用枚舉比較合適this
bootstarp-tagspa
, process: function () {
---------------------註釋此處,只有查詢出來得數據能夠錄入! ////var values = $.grep($.map(this.input.val().split(','), $.trim), function ( value ) { return value.length > 0 }), //// that = this ////console.log('==================='); ////console.log(values); ////$.each(values, function () { //// that.add(this) ////}) this.input.val('') } , skip: false }