js confirm用法

if(confirm("确定要删除数据吗")){
	//是,自己的代码
	evt.feature.getLayer().applyEdits(null, null, [evt.feature]);
	map.infoWindow.hide();
// 	alert("删除成功");
}else{
// 	alert("未删除");
	return;
}

你可能感兴趣的:(js)