【发布时间】:2011-12-04 04:11:19
【问题描述】:
在head标签内的aspx页面:
<script type="text/javascript">
$(function() {
InitializeToolTips();
});
function InitializeToolTips() {
$.toolTipRequest("txtText", "Text tip");
$.toolTipRequest("imgGirl", "You want to see image");
}
(function($) {
$.toolTipRequest = function(id, data) {
$('#' + id).qtip({
content: {
data: {
id: data
}
},
position: {
corner: {
target: 'leftBottom',
tooltip: 'topLeft'
}
},
style: {
name: 'blue'
}
});
}
})(jQuery);
</script>
代码运行并且在控制台中没有显示任何错误,但我无法显示消息(工具提示)。我的错误是什么。 .
【问题讨论】: