下面是Dot符号表达式,
var randomColor = '#' + window.Math.floor(Math.random()*16777215).toString(16);
,对应的Bracket符号写为,
var randomColor = '#' + window['Math']['floor'](window['Math']['random']()*16777215)[toString(16)];
但括号表示法在子表达式[toString(16)]
请帮帮我!!!