display:node 的理解

本文详细解析了Vue框架中v-if与v-show指令的使用差异。v-if不仅改变DOM元素的显示状态,还会从文档流中移除元素,导致无法获取该节点;而v-show则仅通过display:none来隐藏元素,节点依然存在并可被获取。

display:node是在文档流看不到了,但是节点还在,你写的代码(节点)还在


还能获取节点

 

在vue中v-if ,直接连节点也没有了,所以不能获取节点

在vue中v-show ,就是display:none

UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:SpecialAmmo.SpecialAmmo'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:AddNewAmmo:NewAmmo'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:AddNewAmmo:CallFunc_Array_Get_Item'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:AddNewAmmo:K2Node_SetFieldsInStruct_StructOut'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:GetAmmoType:NewLocalVar_0'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:GetAmmoType:CallFunc_Array_Get_Item'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:GetAmmoType:K2Node_MakeStruct_S_AmmoNum'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:自定义事件:AmmoData'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:ExecuteUbergraph_C_AmmoPackage:K2Node_CustomEvent_AmmoData'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/C_AmmoPackage.C_AmmoPackage_C:OnDataChange__DelegateSignature:AmmoData'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/WBP_AmmoData.WBP_AmmoData_C:OnDataChange:AmmoData'. Unknown structure. UATHelper: 打包 (Android (ASTC)): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property 'StructProperty /Game/Zombie/BluePrints/Weapon/Attachment/WBP_AmmoData.WBP_AmmoData_C:ExecuteUbergraph_WBP_AmmoData:CallFunc_Array_Get_Item'. Unknown s、
最新发布
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值