<script type='text/javascript' src='js/jquery.js'></script>
<script type="text/javascript">
$(document).ready(function() {
$("#gt").click(function() {
$("#internal").load('second.jsp'); //not working....
alert("loaded");
});
});
</script>
Happy new year...................
<a href="#" id="gt"> Click me </a>
<p id="para"></p>
<div id="internal"> a</div>
我正在使用 Liferay 6.1 在 Eclipse 中工作。JQuery 工作正常...我能够更改部门的 innerHTML 和警告框也来了..但无法在 div 内加载页面。相同的代码在简单的动态 web 项目中正常工作。任何机构都可以帮助我吗?