0
我有3页,我的项目jQuery的页面加载行为
JQ-scripts.js中
// # DOM Ready
$(function() {
$('.ttip').tooltip();
$('#sample_page').load("sample.php");
});
sample.php
<p class="ttip" title="some text">Hallo</p>
的index.php
<head>
<link rel="stylesheet" href="css/smoothness/jquery-ui-1.10.0.custom.css" type="text/css" />
<script type='text/javascript' src='js/jquery-1.9.1.js'></script>
<script type="text/javascript" src="js/jquery-ui-1.10.0.custom.min.js"></script>
<script type='text/javascript' src='js/jq-scripts.js'></script>
</head>
<body>
<div id="sample_page"></div> <!-- TOOLTIP DON'T WORK -->
<p class="ttip" title="some text">Hallo</p> <!-- TOOLTIP WORK -->
有谁知道为什么加载页面的工具提示(sample.php)d OES不工作?
感谢