tshi0912/city-picker

cp:updated 使用方法

Opened this issue · 0 comments

pwcs commented

我主要想要得到code,故修改源码如下:
feedVal: function (trigger) {
this.$element.val(this.getVal());
if(trigger) {
this.$element.trigger('cp:updated',this.getCode());
}
},

$("#xxxx").on("cp:updated", function (event,v) {
    $("#aaaa").val(v);
});