layui弹出层按钮回调不生效

1.layui的layer弹出层,可以正常弹出,但是里面的按钮点击却没有效果,跟踪了了一个会报错,但是不知道错误出现在那里

这是本人代码
$(document).on('click', '.deleteStudent', function () {
var stuId = $(this).data("id");
layer.open({
type: 1,
title: "警告",
anim: 5,
skin: 'myLayer-class',
content: "hello",
area: ['300px', '200px'],
btn: ['确定', '取消'],
yes: function(index, layero){
layer.close();
},
btn2: function () {
alert("已取消");
}
});
});

**我的jquery是引入的自己的版本,不是它的内嵌版本**

 $(document).on('click', '.deleteStudent', function () {
                  var stuId = $(this).data("id");
                layer.open({
                    type: 1,
                    title: "警告",
                    anim: 5,
                    skin: 'myLayer-class',
                    content: "hello",
                    area: ['300px', '200px'],
                    btn: ['确定', '取消'],
                    yes: function(index, layero){
                        console.log('00000000')
                        layer.close(index);
                    },
                    btn2: function () {
                        alert("已取消");
                    }
                });
            });