add setValue function#44
Open
neozhu wants to merge 4 commits into
Open
Conversation
setValue:function(val){
//console.log('setValue',val);
var $select = this.$dropdown.find('.city-select');
$select.data('item', null);
// parse value from value of the
target $element
//console.log(this.dems)
$.each(this.dems, $.proxy(function (i, type) {
this.options[type] = val[type];
this.output(type);
}, this));
this.tab(PROVINCE);
this.feedText();
this.feedVal();
},
Owner
|
@neozhu src/statetimeline.js 和 src/css/processbar.css 是用来做什么的? |
Author
|
这两个文件没用的,是我一个项目里用到的和你这个没关系可以删掉 |
Author
|
新增了清空功能 |
Owner
|
Please paste the screenshot about the clean button, I need confirm the visuals. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
老版本的
$citypicker3.citypicker({
province: '江苏省',
city: '苏州市',
district: '昆山市'
});
无法对控件赋值
添加一个setValue方法
$citypicker3.citypicker('setValue',{
province: '江苏省',
city: '苏州市',
district: '昆山市'
});
测试可用