我的项目中有 3 页
jq-scripts.js
// # DOM Ready
$( function() {
$('.ttip').tooltip();
$( '#sample_page' ).load("sample.php");
});
示例.php
<p class="ttip" title="some text">Hallo</p>
索引.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)的工具提示不起作用?
谢谢