使用 jQuery,我试图fileTypes
通过使用索引来获取值。我不知道该怎么做,但到目前为止我已经尝试过settings.fileTypes[0]
哪个不起作用。任何帮助表示赞赏,谢谢!
var defaults = {
fileTypes : {
windows: 'Setup_File.exe',
mac: 'Setup_File.dmg',
linux: 'Setup_File.tar.gz',
iphone: 'iPhone App'
}
},
settings = $.extend({}, defaults, options);