liluwang5210's recent timeline updates
liluwang5210

liluwang5210

V2EX member #489031, joined on 2020-05-12 10:26:22 +08:00
liluwang5210's recent replies
@mydingyan 请问哪个开源库呢
Mar 23, 2022
Replied to a topic by pianjiao 程序员 在线蹲一个方法, JS 实现!
d 不知道是不是写错了,var d = {
a: {
rule: [1],
isShow : true,
extends: [2],
value : 1
},
b: {
rule: [2],
isShow : false,
extends: [3],
value : 2
},
}
写了比较笨的
for (const key in a) {
if (a.hasOwnProperty.call(a, key)) {
c[key].value = a[key];

}
}
for (const key in b) {
if (b.hasOwnProperty.call(b, key)) {
c[key].role = b[key];

}
}
额,为啥不能同步,Chrome 的同步可以用啊
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3061 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 14:53 · PVG 22:53 · LAX 07:53 · JFK 10:53
♥ Do have faith in what you're doing.