layer alert 有按钮功能
2017-05-02 16:10
134 查看
layer.open({ title: '云堆系统提示', content: msg.info, btn: ['添加认证信息'], yes: function(index, layero){ window.location.href='extendedinfo.html'; }, cancel: function(){ //右上角关闭回调 window.location.href='extendedinfo.html'; //return false 开启该代码可禁止点击该按钮关闭 } });
相关文章推荐
- Enter键代替Tab键的功能;为按钮添加消息框confirm(),alert();动态生成表格
- Layer:1、alert点击确定按钮后回调
- 尝试用React写几个通用组件 - 带搜索功能的下拉列表,开关切换按钮,弹出框
- 从一个界面push到下一界面左上角返回按钮文字设置(常用功能)
- C# :Response.End() 后页面按钮等功能全部失效的解决办法
- Flex 自定义Alert-给alert添加按钮
- AlertDialog.Builder实现多选框的全选和反选功能
- 如何使当点击AlertDialog中的按钮时,AlertDialog不被dismiss掉
- easyui $.message.alert 点击右上角的关闭按钮时,不执行定义的回调函数
- BootstrapTable加载按钮功能实例代码详解
- MFC中界面按钮调用(显示)对话框功能实现
- JavaScript实现计时器,一个按钮实现开始和停止的功能
- AJAX开发支持标准浏览器按钮功能的方法
- 为FckEditor增加插件,添加自定义的功能按钮ToolBarButton
- HTML页面原生VIDEO标签隐藏下载按钮功能
- Android layer-list 布局实现多颜色按钮
- cocos2d-js 按钮本点击时,按钮缩放功能
- 使用NSTimer计时器实现简单的按钮倒计时功能
- 避免按钮的重复提交功能
- JS实现的全选/全不选功能按钮