function callQtip(textContent, cnt, object_iframe) {
var iFrameEleId = object_iframe
$(iFrameEleId).qtip({
content: {
prerender: false,
text: "<div style='width:100%; height:100%;' border='0'><iframe id='iframe" + cnt + "' marginheight='0' marginwidth='0' class='frameclass' src='" + textContent + "'&disablelink=y' scrolling='no' frameborder='0' allowTransparency='false'></iframe></div>"
},
position: {
my: "left top",
at: "left top",
target: $(iFrameEleId),
viewport: $(window),
adjust: {
method: 'shift',
x: 420,
y: -10
}
},
show: {
solo: false,
delay: 150
},
hide: {
delay: 350,
fixed: true,
event: 'click mouseleave'
},
style: {
classes: "ui-tooltip-blue",
tip: {
corner: 'center center',
mimic: 'center center'
}
}
});
}
对不起..实际的编码是这样的。
最佳答案
确保您对qtip库有有效的引用。就像是:
<script type="text/javascript" src="/js/jquery.qtip.min.js"></script>
关于jquery - 对象不支持属性或方法“qtip”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7169781/