Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 html 将数据加载到我的 div,如下所示:
$('#result').load('ajax/test.html');
在里面test.html我有一个alertme功能。 有没有办法在当前文档中加载html后调用此方法?
test.html
alertme
$('#result').load('ajax/test.html', function(){ alertme(); });