我的 soft.php 代码
<!DOCTYPE html>
<html>
<head><style>
</style>
<script src="jquery.js"></script>
<script>
$(function(){
$("button").on("click",function(){alert("f");});
$("div").on("click",function(){
$("span").load("check.php");
});
});</script></head><body>
<div>Click</div>
<button>eaf</button><span></span>
</body></html>
和 check.php 代码
<body>
<button>Hello</button>
</body>
我想提醒 f 单击通过 ajax 加载的按钮,该按钮与 .live() 一起工作正常。但是有人告诉我 .on() 可以用来代替 live 但 .on() 在这里不起作用。建议解决方案