var domElements = [
'tabslist', 'settingsbutton',
'closetab', 'tryreloading', 'bookmarkmenu-add',
'bookmarkmenuremove', 'bookmarkmenucancel', 'bookmarkmenuedit'
];
domElements.forEach(function createElementRef(name) {
dump('fangbo_elabel elabel_sar_init name = ' + name);
this[name] = name;
}, this);
Array.forEach() & Using square brackets to obtain the value of a property
最新推荐文章于 2022-08-02 10:17:13 发布