删除链表的节点
var deleteNode = function(head, val) {
if(!head) return null
if(val===head.val){
return head.next
}
let current=head
while(current.next){
if(val==current.next.val){
current.next=current.next.next
return head
}
current=current.next
}
};