小白教程
所有教程
关于
Search
172.69.58.117
172.69.58.117
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Prop jquery”的源代码
本页内容
上一节:
Prop_context
下一节:
Prop_jquery_fx_interval
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:jquery}}[[Category:jquery ref prop|2]] = jQuery jquery 属性 = [[jquery ref prop|jQuery 属性]] 输出当前正在运行的 jQuery 版本: <sample title="" desc="" lang="html" hererun="1"> $("button").on("click",function(){ var version = $().jquery; alert("你正在运行的jQuery版本为: " + version); }); </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("button").on("click",function(){ var version = $().jquery; alert("你正在运行的jQuery版本为: " + version); }); }); </script> </head> <body> <button>点我!</button> </body> </html> </run> == 定义和用法 == jquery 属性返回的字符串包含 jQuery 的版本号。 == 语法 == <pre> $().jquery</pre> [[jquery ref prop|jQuery 属性]]
返回至“
Prop jquery
”。
上一节:
Prop_context
下一节:
Prop_jquery_fx_interval