setTimeout(function() {
//选择时背景颜色变量
var oldColor = "rgb(255, 255, 255)";
var newColor = "rgb(255, 0, 0)";
var index=0
$("[widgetname='REPORT1']").find("td[id^=B]").click(function() {
console.log(index)
$("[widgetname='REPORT1']").find("td[id^=B]")[index].style.color='blue'
$(this).css('color', newColor)
index = $("[widgetname='REPORT1']").find("td[id^=B]").index(this);
});
}, 1000);