OldFunc = window.onload;
window.onload = OnLoad;
function OnLoad() {
try {
OnFixFontAndTable();
OldFunc();
} catch (e) {
alert(e);
}
}
function OnFixFontAndTable() {
$('.something some').css({
'behavior': 'url(/path/border-radius.htc)'
});
}
我border-radius.htc
用来解决以前版本的 IE 的问题,但alert(e)
总是被称为"TypeError:Object expected"
.