-
Vue-grid-layout实现web拖拽布局功能
npm安装npminstallvue-grid-layout--save使用demo{{item.i}}layout:[{"x":0,"y":0,"w":2,"h":2,"i":"0"},{"x":2,"y":0,"w":2,"h":4,"i":"1"},{"x":4,"y":0,"w":2,"h":5,"i":"2"},{"x":6,"y":0,"w":2,"h":3,"i":"3"},],参数… -
CentOS 7.6下宝塔面板 PHP7.2安装sqlsrv扩展
PHP需要的相关环境(慎用yumupdate)yumupdateyuminstallphpphp-pdophp-xmlphp-pearphp-develre2cgcc-c++gcc1、加微软源curlhttps://packages.microsoft.com/config/rhel/7/prod.repo>/etc/yum.repos.d/mssqlrelease.repo如果发现这个链接失效了… -
SqlServer判断表、列不存在则创建
一、表不存在则创建:ifnotexists(select*fromsysobjectswhereid=object_id('mytab')andOBJECTPROPERTY(id,'IsUserTable')=1)createtablemytab(idint,ageint,namevarchar(max),primarykey(id,age))go二、列不存在则创建。ifnotexists(sel… -
elementUI 预览大图关闭按钮问题
ElementUI中的图片有预览大图的功能,但是只能点击右上角的关闭图标才能关闭,感觉很不方便,而且如果大屏还很难注意到这个按钮method:{//关闭el-image遮罩层handleClickItem(){this.$nextTick(()=>{//获取遮罩层domletdomImageMask=document.querySelector('.el-image-viewer__mask')i… -
TinyMCE工具栏配置详解
TinyMCE工具栏配置详解启用和停用工具栏通过init配置项toolbar和toolbar(n)来配置工具栏是否启用的项目和显示的顺序。同时,使用|来分割各个项。tinymce.init({selector:'#textarea1',//changethisvalueaccordingtoyourHTML//启用工具栏并显示如下项toolbar:'undoredo|styleselect|bol… -
vue项目打包后报错:exports is not defined
修改项目目录中的babel.config.jsmodule.exports={presets:[["@vue/app",{useBuiltIns:"entry"}]]} -
sqlserver判断字段是否为null,是否为空串
1.判断null值Select * From tableWhereidISNULL;//查询id为null值的记录Select * From tableWhereidISNOTNULL;//查询id不为null值的记录2.判断空串Select*FromtableWhereid=''; //查询id为空串的记录Select*Fro…