生化狂潮荒芜雪原攻略1.11dbug

标签:至少1个,最多5个
在调试使用jQuery操作checkbox的选中状态切换的时候,发现了个bug:checkbox复选框在被选中再取消选中一次后,无法再次通过jQuery重新选中了。
如果发现不对,欢迎指正。如果知道怎么解决这个问题,麻烦告知!
测试环境:
Chrome版本 47.0. m
34.0.2036.25
jQuery版本 V1.11.1
html代码片段如下:
&label&&input type="checkbox" name="options" value="1" /&样例1&/label&
&label&&input type="checkbox" name="options" value="2" /&样例2&/label&
&label&&input type="checkbox" name="options" value="3" /&样例3&/label&
jQeury代码为:
// 设置全选
$("input[type='checkbox']").attr("checked", "checked");
// 设置取消选中
$("input[type='checkbox']:checked").attr("checked", false);
经过测试, 无论是通过手动选中再取消选中,还是用上述代码设置选中再取消选中,用第一行代码都无法再次选中复选框。
但是使用JavaScript直接操作每一个dom的属性来设置,是可以正常的。这应该算是jQuery的问题吧?
$("input[type='checkbox']").each(function() {
this.checked=
// 设置选中
this.checked=
设置取消选中
0 收藏&&|&&2
你可能感兴趣的文章
6 收藏,2.1k
8 收藏,2.4k
1 收藏,584
$("input[type='checkbox']").prop("checked", "checked");$("input[type='checkbox']:checked").prop("checked", false);改成prop试试。
$(&input[type='checkbox']&).prop(&checked&, &checked&);
$(&input[type='checkbox']:checked&).prop(&checked&, false);
改成prop试试。
还真可以,学习了!
还真可以,学习了!
1.6以上的jQuery版本用prop。这属于jQuery自己挖的坑。
1.6以上的jQuery版本用prop。这属于jQuery自己挖的坑。
楼主,你这个应该是
在问答 区提出问题, 而不是在
楼主,你这个应该是
在问答 区提出问题, 而不是在
另外关于你遇到的问题, 之前有人提问过:
具体的原理,你可以看一下 被采纳的那个答案, 中的评论...
另外关于你遇到的问题, 之前有人提问过:
/q/1785?_ea=539366
具体的原理,你可以看一下 被采纳的那个答案, 中的评论...
分享到微博?
我要该,理由是:
在 SegmentFault,解决技术问题
每个月,我们帮助 1000 万的开发者解决各种各样的技术问题。并助力他们在技术能力、职业生涯、影响力上获得提升。
一线的工程师、著名开源项目的作者们,都在这里:
获取验证码
已有账号?资料图鉴:教程速查:
当前位置:
我的世界1.11第11个预览版16w41a发布 一大坨Bug被修复
小编:3F时间: 09:16
  我的世界1.11第11个预览版16w41a发布 一大坨Bug被修复。那虽然我的世界1.11版本没有发布,但是没事就会有预览版快照发布,这也算是福利啦!这不我的世界1.11第是一个预览版16w41a就发布了,并且在该快照中修复了很多的BUG哦~那下面就一起来看看吧!
  游戏园我的世界官方群: 或 &欢迎各路喜爱我的世界的小伙伴们加入讨论!
  玩服务器的小伙伴们可以加入:&群一起联机玩游戏哦!
  如果你是腐竹的话可以给我们投稿你的服务器哦~投稿地址:
  如果你有心仪的作品或者心得分享的话,欢迎来游戏园投稿,大家可以点击&&&&&&进行投稿哦~&有奖品哦~
  It&s time for a new snapshot, and this one includes a lot of bugfixes!
  And this snapshot includes&
  是时候发布新快照了,它包含了一大坨Bug修复!
  这次快照包含&&
  Notable changes:
  A number of Observer block fixes
  Two+ crash fixes
  The ascii rabbit was removed from the code, but fortunately added again
  Damaged items are now more bright
  Nothing wrong with pistons anymore ever. -Grumm
  显著的更新:
  一些关于侦测器方块的修复
  2+崩溃修复
  用ASCII码画的兔子从代码中被移除,但很幸运地被加回来了
  破损的物品现在更亮了
  活塞再也不会出Bug了。&&Grumm
  Bugs fixed in 16w41a:
  16w41a中修复的Bug:
  [Bug MC-2912] - Creative Mode Hotbar Glitch when using Number Key to exchange items slots
  使用创造模式物品栏时用数字键切换物品槽出错
  [Bug MC-11416] - Dispenser / Dropper / Piston / Command block placing is not consistent
  发射器、投掷器、活塞、命令方块的放置不一致
  [Bug MC-59303] - When placed next to a cactus, the head of bed remains same
  将床放置在仙人掌旁边会留下床头
  [Bug MC-70806] - Blocks with a data value & 0 have missing texture in superflat customization
  在超平坦预设中使用数据值&0的方块会显示为纹理缺失
  [Bug MC-80692] - WitherBoss attacks ArmorStands
  凋零攻击盔甲架
  [Bug MC-96544] - Temperature Freezing Point Inconsistency
  温度结冰点不一致
  [Bug MC-97982] - Offhand slot frame rotated 180 degrees compared to hotbar
  副手物品相对于快捷栏中的物品旋转了180度
  [Bug MC-98009] - Elytra equipment sound using Leather armor equipment sound
  鞘翅装备的声音使用了皮革盔甲装备的声音
  [Bug MC-99103] - You can&t see remaining time when you have potion effect in Demo Mode
  试玩模式中拥有药水效果时无法看到剩余时间
  [Bug MC-99599] - Server does not test if player is sleeping when receiving CPacketEntityAction.Action.STOP_SLEEPING
  服务器收到CPacketEntityAction.Action.STOP_SLEEPING时不会检测玩家是否在睡觉
  [Bug MC-99603] - Wolves, Dogs, and Ocelots fall out of the world
  狼、狗、豹猫、墨鱼掉出世界
  [Bug MC-99661] - Summoning a LeashKnot with a passenger entity crashes
  生成一个带有乘客的栓绳圈会导致崩溃
  [Bug MC-99814] - help -1 throws unknown command exception
  输入help -1命令会抛出未知指令异常
  [Bug MC-99900] - Enchantments boostrap class has the wrong error message when called before bootstrap
  附魔启动类在启动前调用时抛出的错误信息错误
  [Bug MC-101249] - Target selectors ignore invalid arguments
  目标选择器无视非法参数
  [Bug MC-102439] - Shield Desynchronizes
  盾牌不同步
  [Bug MC-102683] - &Elder Guardian Flops& showed as &Guardian Flops& in subtitles
  &远古守卫者:移动&在字幕中显示为&守卫者:移动&
  [Bug MC-104901] - Suboptimal visibility and horrific look of the tool&s durability bar colors
  工具的耐久度条颜色可见度不理想且看起来很糟
  [Bug MC-105406] - OpenGL Leak in View Frustum
  视锥体计算中发生OpenGL泄露
  [Bug MC-105898] - Mushrooms and cro leaves &head& of bed behind, same with double plant
  蘑菇和小麦使床掉落,并留下了床头,这也发生在两格高的植物上
  [Bug MC-106296] - Wrong subtitle for sound (sounds.json mistake)
  错误的声音字幕(sounds.json错误)
  [Bug MC-107171] - maxEntityCramming is off-by-one
  maxEntityCramming差了1
  [Bug MC-107407] - Zooming out an exploration map turns the map blank
  缩小探险地图会使地图变为空白
  [Bug MC-107410] - Observer block outputs single game tick pulse, not single redstone tick pulse
  侦测器输出单个游戏刻的脉冲,而不是单个红石刻
  [Bug MC-107600] - Observer block causes bottom half of bed to break
  侦测器导致床的下半部分被破坏
  [Bug MC-107662] - Observers can cause blocks to be stuck in the powered state when being pushed by pistons
  侦测器可以导致方块被活塞推动时停在充能态
  [Bug MC-107730] - Oberserver block powers air blocks
  侦测器方块会充能空气
  [Bug MC-107783] - Observer powers redstone dust only to level 1
  侦测器只输出1强度的能量
  [Bug MC-107795] - Redstone connects to Observer Blocks on sides
  红石连向侦测器的侧面
  [Bug MC-107869] - Llamas often spawn in blocks and die while in mountainous regions
  在山地中羊驼常常生成在方块中并死亡
  [Bug MC-107907] - Llama spit is not saved as entity
  羊驼的口水不被保存为实体
  [Bug MC-107934] - Observers are placed with the input facing you (unlike MCPE)
  侦测器被放置时输入端对着你(不像PE版)
  [Bug MC-107957] - Hopper: java.util.ConcurrentModificationException
  崩溃收集器:java.util.ConcurrentModificationException
  [Bug MC-107959] - Buttonspamming with observerblocks
  按钮和侦测器在一起时会出问题
  [Bug MC-108054] - Observer rotates towards +z, when reloaded while being moved or set with /setblock
  当被重新载入或当被移动或通过/setblock放置时侦测器旋转朝向+z
  [Bug MC-108216] - Copying then zooming out an Explorer Map make it lose its structure pointer
  复制并缩小探险地图会使其丢失结构标记点
  [Bug MC-108270] - Wither skeleton spawing quelled by normal skeletons
  凋零骷髅被普通骷髅攻击
  [Bug MC-108315] - Closing options with esc doesn&t send player setting packet
  用Esc键关闭选项界面不会发送玩家设置数据包
  [Bug MC-108344] - Left-handed vindicators raise right arm when aggressive
  左撇子卫道士攻击时会举起右胳膊
  [Bug MC-108348] - Totem of undying is not consumed/destroyed
  不死图腾不被消耗或摧毁
  [Bug MC-108349] - When a sticky piston (facing up with a block on it) is retracted while an entity is standing on it, the entity appears to sink into the ground.
  当粘性活塞(向上且上方有一个方块)被收回且上面站着一个实体,这个实体会沉入地面
  [Bug MC-108354] - Incorrect subtitle when equipping a llama with a chest
  当给羊驼装备箱子时会有不正确的字幕
  [Bug MC-108357] - Naturally generated vindicators axe is missing
  自然生成的卫道士的斧子缺失
  [Bug MC-108358] - Crash when 32 or more pistons retract in a single chunk (IllegalArgumentException)
  单个区块中大于等于32个活塞同时收回会导致游戏崩溃(IllegalArgumentException)
  [Bug MC-108378] - Crafting a Zoomed Out Map By a Hotbar Hotkey Won&t Update It
  痛苦快捷看热键合成一个缩小的地图不会更新它
  [Bug MC-108399] - No subtitle for when the totem of undying activates
  不死图腾激活时没有字幕
  [Bug MC-108409] - Villager makes disagree sounds when you click arrows and trade boxes.
  当你点击箭头和交易框时村民会发出不同意的声音
  [Bug MC-108480] - Johnny Vindicators attempt to attack armor stands
  卫道士试图攻击盔甲架
  [Bug MC-108525] - shulker_box.png Default resource pack GUI 1 pixel too high (167 vs 166 pixel)
  shulker_box.png的默认资源包GUI高了一个像素(167而不是166像素)
  [Bug MC-108588] - Structure blocks save invalid data when saving a structure at 0, 0
  当保存0, 0处的结构时结构方块会保存非法数据
  Please report any and all bugs you find in Minecraft to . If nobody reports a bug, we can&t fix it!
  experimental development snapshots& and save. To switch to the normal version, you can select it in the dropdown at the bottom left corner of the launcher. Back up your world first or run the game on in a different folder (See the &new profile& dialog).
  Snapshots can corrupt your world, please backup and/or run them in a different folder from your main worlds.
  请在报告Minecraft中的BUG。如果没人汇报BUG的话,我们无法修复它!
  如果你想试玩快照,请打开官方启动器并点击&New Profile&按钮,选中&snapshots&并选择&Enable experimental development snapshots&并点击保存。如果想切换到普通的版本,你可以在启动器左下角按钮上方的下拉菜单中选择。在开始快照前备份你的世界或在不同的文件夹中启动快照(见&new profile&对话框)。
  快照可能会玩坏你的存档,请千万记得备份存档和/或在与你的存档不同文件夹里运行。
  PS:在此非常感谢我的世界玩家bobby825的分享。
  以上就是我的世界1.11第11个预览版16w41a发布 一大坨Bug被修复。更多精彩尽在游戏园我的世界专区。
  相关攻略推荐:
分享到:更多
类型:休闲娱乐平台:PC,iOS,安卓
游戏大礼包手游开测表
剑与家园光棍节脱单礼包烈焰龙城激活码魔法王座大电影上线礼包古剑绝学撩妹礼包剑与家园狂欢节装扮礼包光明大陆万圣节糖果礼包
11-03公测11-02内测10-31内测10-26内测10-26公测10-2410-19内测09-29公测09-2809-27公测
攻略推荐本月最新
手游排行网游单机当前位置 & &
& PS3固件升级至1.11 众多bug未修正
PS3固件升级至1.11 众多bug未修正
09:24:00&&作者:
编辑:ZNXF &&)
让小伙伴们也看看:
微信公众号搜索" 驱动之家 "加关注,每日最新的手机、电脑、汽车、智能硬件信息可以让你一手全掌握。推荐关注!【微信扫描下图可直接关注】
阅读更多:
好文共享:
文章观点支持
文章价值打分
当前文章打分0 分,共有0人打分
[03-22][03-15][03-11][02-25][02-19][02-17][02-15][02-12][02-03][01-31]
登录驱动之家
没有帐号?
用合作网站帐户直接登录}

我要回帖

更多关于 生化狂潮荒芜雪原攻略 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信