input.map(event=>event.target.value).subscribe(value=>console.log(value));//"h"//通过提取属性传递一个新的值input.pluck
. _.invoke([[5,1,7],[3,2,1]],'sort');=>[[1,5,7],[1,2,3]] pluck _.pluck(list,propertyName) Aconvenientversionofwhatisperhapsthemostcommonuse-caseformap
event.clientX).scan((count,clientX)=>count+clientX,0).subscribe(count=>console.log(count)); 其他产生值的操作符有pluck
}interfacePerson{name:string;age:number;}letperson:Person={name:'Jarid',age:35};letstrings:string[]=pluck