Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个日期选择器(默认选择器),我需要将 Month 列翻译成任何其他语言。
我还不能访问这些字段,而且似乎找不到合适的方法。
有人知道我如何将“选择器”选项设置为我想要的选项(即翻译文本)吗?
{ fn: function(element, eOpts) { var picker = this.query('pickerslot')[0]; var store = picker.getStore(); for (i in LANG.word.months) { store.getAt(i).data.text=LANG.word.months[i]; } picker.refresh(); }, event: 'painted' }
像魅力一样工作,很难找到正确的方法