Open guuhub opened 10 years ago
show the code, you will understand. "loopIndex" num is jsonObj each times
var _width = $('div:first', pth).eq(0).css('width').replace('px', '') - 1; if (loopIndex == 0) { _width += 1; } $(tdDiv).css({ textAlign: pth.align, width: $('div:first', pth)[0].style.width //width: $('div:first', pth)[0].style.width width: _width + 'px' });
if (p.dataType == 'json') { _width + 'px' } else { $('div:first', pth)[0].style.width }
show the code, you will understand. "loopIndex" num is jsonObj each times
var _width = $('div:first', pth).eq(0).css('width').replace('px', '') - 1; if (loopIndex == 0) { _width += 1; } $(tdDiv).css({ textAlign: pth.align, width: $('div:first', pth)[0].style.width //width: $('div:first', pth)[0].style.width width: _width + 'px' });