小白教程
所有教程
关于
Search
172.69.59.161
172.69.59.161
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
Html prop:修订历史
本页内容
上一节:
Html_prependto
下一节:
Html_remove
筛选修订版本
展开
折叠
截止日:
标签
过滤器:
wikieditor(隐藏的标签)
已被回退
手工回退
撤销
新建重定向
清空
显示版本
差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:
(当前)
=与最后版本之间的差异,
(之前)
=与上一版本之间的差异,
小
=小编辑。
2022年8月19日 (星期五)
当前
之前
11:45
2022年8月19日 (五) 11:45
Neo
讨论
贡献
2,621字节
+2,621
创建页面,内容为“{{DISPLAYTITLE:prop()}}
25
= jQuery prop() 方法 =
jQuery HTML/CSS 方法
添加并移除名为 "color" 的属性: <sample title="" desc="" lang="html" hererun="1"> $("button").click(function(){ var $x = $("div"); $x.prop("color","FF0000"); $x.append("The color 属性: " + $x.prop("color")); $x.removeProp("color"); }); </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta c…”
上一节:
Html_prependto
下一节:
Html_remove