哈哈哈gogo(提问者)原贴的js:
function() {
{
var a = [];
for (i = 1; i <14 ; i++) {
var str = \"A\";
var id1 = str + i;
var value1 = _g().getWidgetByName(\"report0\").getCellValue(id1);
a.push(value1);
}
var b = [];
for (i = 1; i <14; i++) {
var str = \"B\";
var id2 = str + i;
var value2 = _g().getWidgetByName(\"report0\").getCellValue(id2);
b.push(value2);
}
var c = [];
for (i = 1; i <14; i++) {
var str = \"C\";
var id3 = str + i;
var value3 = _g().getWidgetByName(\"report0\").getCellValue(id3);
c.push(value3);
}
var len = a.length;
for (i = 0; i < len; i++) {
if (this.name == a[i])
{ return \'月份:\'+a[i]+\' 占比:\'+b[i]+\' 同比:\'+c[i]; }
}
}
}