<script type="text/javascript" src="js/jquery-1.10.1.js"></script><script type="text/javascript"> $(function(){ $('a').click(function(){ var url = this.href var args = {'time':new Date()} $('#details').load(url,args) return false }) })</script></head><body> <h1>people</h1> <ul> <li><a href="02andy.html">Andy</a><> <li><a href="02richard.html">Richard</a><> <li><a href="02jeremy.html">Jeremy</a><> </ul> <div id="details"></div></body> 为什么 加上args会报错,去掉就能显示?
添加回答
举报
0/150
提交
取消