 
						引用jQuery库和插件以及样式文件
| 1 2 3 | <linkrel="stylesheet"href="assets/style.css"><scriptsrc="assets/script.js"></script> | 
调用插件
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | $(document).ready(function() {    varrcm = window.RMenu;    rcm.init({        area: 'body',        items: {            "edit": {                name: "编辑",                icon: 'edit'            },            "del": {                name: "删除",                icon: 'trash-o'            },            "add": {                name: "添加",                icon: 'plus',                items: {                    "new-text": {                        name: "添加文件",                        icon: 'file-text'                    },                    "new-zip": {                        name: "添加ZIP",                        icon: 'file-zip-o'                    }                }            },            "refresh": {                name: "刷新",                icon: 'refresh'            },            "down": {                name: "下载按钮",                icon: 'cloud-download'            },            "new": {                name: "新建",                icon: 'file',                items: {                    "new-text": {                        name: "新建文件",                        icon: 'file-text'                    },                    "new-zip": {                        name: "新建ZIP",                        icon: 'file-zip-o'                    }                }            }        },        callback: function(res) {            if(res.data == 'edit') {                console.log('点击了edit');            } elseif(res.data == 'del') {                console.log('点击了del');            } elseif(res.data == 'add') {                console.log('点击了add');            } elseif(res.data == 'refresh') {                window.location.reload();            } elseif(res.data == 'down') {                console.log('点击了download');            }        }    })}); | 
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com