为什么从rxjs运算符使用fromEvent时会得到无效的事件目标,该操作符使用reactjs,RxJS从querySelector读取输入字段中的值
let data = {
"id": 61,
"roleName": "ADMIN",
"description": "ADMIN",
"permissions": [
{
"id": 23,
"permissionName": "addPermission",
"description": "addPermission"
},
{
"id": 13,
"permissionName": "updateTest",
"description": "updateTest"
}
]
}
let desiredData = {permissions: data.permissions.map(p => p.permissionName)}
console.log(desiredData)