首页
导航
博客
电子书
算法
众创
代码
随贴
关于我们
您好,欢迎来到码863代码分享网! 请
[登录]
/
[注册]
搜 索
标题:
*
140
字
TAG标签:
(用空格隔开)
30
字
恢复历史版本:
请选择分类
html
python
javascript
php
sql
c
c++
c#
java
plain
所有人可见
仅自己可见
编辑器:UEditor
编辑器:TinyMCE
编辑器:Editor.md
HTML转MD
HTML转MD2
<p><span style="color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255);">根据官方的建议:</span><strong style="margin: 0px; padding: 0px; color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">具有 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 使用prop(),其他的使用 attr()</strong></p><p><span style="color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(248, 248, 255);">To retrieve </span><span class="keyword" style="margin: 0px; padding: 0px; line-height: 1.8; color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; font-weight: bold;">and</span><span style="color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(248, 248, 255);"> change DOM properties such </span><span class="keyword" style="margin: 0px; padding: 0px; line-height: 1.8; color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; font-weight: bold;">as</span><span style="color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(248, 248, 255);"> the checked, selected, </span><span class="keyword" style="margin: 0px; padding: 0px; line-height: 1.8; color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; font-weight: bold;">or</span><span style="color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(248, 248, 255);"> disabled state of form elements, </span><span class="keyword" style="margin: 0px; padding: 0px; line-height: 1.8; color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; font-weight: bold;">use</span><span style="color: rgb(51, 51, 51); font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(248, 248, 255);"> the .prop() method.</span></p><p><br/></p><p>经验 做项目时记得用<span style="color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255);">prop('checked',true)设置状态时生效</span></p><p><span style="color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255);"><br/></span></p><p><span style="color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255);"><br/></span></p><p><span style="color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255);"></span></p><p style="margin-top: 0px; margin-bottom: 10px; padding: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 14px; line-height: 24px; font-family: Arial, 微软雅黑; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(68, 68, 68); text-size-adjust: auto;"><strong style="margin: 0px; padding: 0px;">具有 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 使用prop(),其他的使用 attr(),具体见下表:</strong></p><p style="margin-top: 0px; margin-bottom: 10px; padding: 0px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 14px; line-height: 24px; font-family: Arial, 微软雅黑; white-space: normal; background-color: rgb(255, 255, 255); color: rgb(68, 68, 68); text-size-adjust: auto;"><img src="/ueditor/php/upload/image/20181106/1541486000806891.png" alt="" style="margin: 0px; padding: 0px; border: 0px currentcolor; max-width: 600px; height: auto; vertical-align: middle; cursor: pointer;"/></p><p><span style="color: rgb(68, 68, 68); font-family: Arial, 微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255);"><br/></span><br/></p>
CopyRight 2002~2023 精通2100网 联系邮箱:qqtxt@163.com
版权所有:精通2100网
湘ICP备2023018646号-1
MYSQl共执行 4 个查询,用时 0.0020277500152588 秒,PHP脚本用时 0.003948 秒,占用内存 0.522 MB,Gzip 已启用