未验证 提交 11cc490a 编写于 作者: C Catouse 提交者: GitHub

Merge pull request #200 from easysoft/dev/picker

* Solve the problem of garbled drop-down options
......@@ -1291,7 +1291,7 @@
};
Picker.prototype.getItemID = function(item, suffix) {
var id = this.id + '-item-' + encodeURIComponent(item[this.options.valueKey]);
var id = this.id + '-item-' + btoa(encodeURIComponent(item[this.options.valueKey])).replace(/\+/g, '_').replace(/=/g, '-');
if (suffix !== undefined) {
return id + '-' + suffix;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册