我在 IE 8 中收到“对象不支持此属性或方法”错误。在 Firefox 中没有错误。
有人知道是什么原因造成的吗?
<script type="text/javascript">
function callReport() {
var sPath = $('input[name*="ReportPath"]').val();
window.open(sPath);
}
$('div:last div.active').qtip({
content: 'This is an active div element',
show: 'mouseover',
hide: 'mouseout'
})
</script>
最佳答案
看起来 qTip 使用了一个名为 tooltip
的全局变量,这有时可能会导致 IE8 中出现问题(也许只是在严格模式下)。在使用 qTip 的 JS 文件顶部声明 window.tooltip = null
为我解决了这个问题,并且更清楚地表明该变量存在。
关于javascript - 对象不支持此属性或方法 JavaScript 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12730020/