javascript 的setInterval能识别U方法吗
thinkphp吧
全部回复
仅看楼主
level 1
魅why惑 楼主
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script src="__PUBLIC__/js/jquery.js"></script>
<script>
$(document).ready(function(){
$('button').click(function(){
setInterval(function(){$.post("{:U('List/addd')}",
function(data){
alert('abc');
});},5000)
})
});
</script>
<body>
<input type="text" id="abc">
<button>123</button>
</body>
</html>
2015年12月03日 15点12分 1
level 1
魅why惑 楼主
求大神告知
2015年12月03日 15点12分 2
1