你能有多个$(文档).就绪(函数(){…)吗?(});章节?如果我在创业时有很多功能,它们是否都必须放在一个下面:$(document).ready(function() {或者我可以有多个这样的陈述?
3 回答

Helenr
TA贡献1780条经验 获得超4个赞
$(document).ready(function() { // Jquery $('.hide').hide(); $('.test').each(function() { $(this).fadeIn(); }); // Reqular JS function test(word) { alert(word); } test('hello!');});
- 3 回答
- 0 关注
- 474 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消