确定删除

var comf =confirm("确定需要删除吗");
comf ?delete_task(index):null;
原文地址:https://www.cnblogs.com/fpcbk/p/9602384.html