var buttonArray = [
document.getElementById('underline'),
document.getElementById('bold'),
document.getElementById('italic'),
document.getElementById('tnr'),
document.getElementById('ss'),
document.getElementById('red'),
document.getElementById('green'),
document.getElementById('blue')
];
你能做这个吗?还是太抽象了?