liugonghe

Results 2 comments of liugonghe

[...arrayLike]; 不能把类数组对象转换成数组哟,会报错! var a = {0: 2, 1: 3, length: 2}; [...a] //object is not iterable

已经通过另一种方式实现了: ` { "type": "action", "body": { "type": "breadcrumb", "separator": "/", "source": "${breadcrumb}" }, "onClick": "event.preventDefault();var html=event.target.offsetParent.innerHTML; var temp=document.createElement('template'); temp.innerHTML = html; var href=temp.content.children[0].getAttribute('href'); var id = href.split('#/')[1]; var breadcrumb...