layer.confirm('提示內容!', { btn: ['肯定', '取消'] //按鈕 }, function () {跳轉或者點擊按鈕後想要實現的功能 layer.close(index); });io