$(function(){});
来源:互联网 发布:软件开发编程招聘 编辑:程序博客网 时间:2024/05/18 01:12
jQuery( callback )Returns: jQuery
Description: Binds a function to be executed when the DOM has finished loading.
version added: 1.0jQuery( callback )
- callbackType: Function()The function to execute when the DOM is ready.
This function behaves just like $( document ).ready()
, in that it should be used to wrap other $()
operations on your page that depend on the DOM being ready. While this function is, technically, chainable, there really isn"t much use for chaining against it.
Examples:
Example: Execute the function when the DOM is ready to be used.
1
2
3
$(function() {
// Document is ready
});
Example: Use both the shortcut for $(document).ready() and the argument to write failsafe jQuery code using the $ alias, without relying on the global alias.
1
2
3
jQuery(function( $ ) {
// Your code using failsafe $ alias here...
});
0 0
- Function
- function
- function
- function $()
- Function
- function
- Function
- $(function(){...});
- function
- Function
- function
- Function
- function
- (function(){})()
- $(function)
- $(function(){...});
- $(function(){});
- $(function(){...});
- C# 2010 从入门到精通 学习笔记6 第7章 创建并管理类和对象
- 卸载 SharePoint Server 2010
- 为什么我们不能成为牛逼的站长
- INI配置文件的格式
- .net MVC 跨域获取验证码
- $(function(){});
- Mysql的安全相关启动选项
- 注册(十一)重注册带有鉴权信息
- 使用sql语句创建和删除约束
- 白盒测试和黑盒测试
- 随时更新———个人喜欢的关于模式识别、机器学习、推荐系统、图像特征、数值计算、目标跟踪等方面个人主页及博客
- 使用python 更改文件内容
- xp系统优化
- linux perl mail 发邮件