06 2020 档案
摘要:首先看看他的界面效果: 首先引入js包,这个说的有点多余了,包的地址:http://www.wangeditor.com/ 个人感觉这个富文本框非常简洁,易于使用; 编辑器初始化的话首先需要创建一个div容器: <div id="editor" name="productcontent"> </di
阅读全文
摘要:背景:使用文件流实现下载功能本机运行无问题,公司服务器部署运行无问题,甲方部署运行下载出错; 解决方案:使用分区下载实现该功能; 前端调用: /*动态创建form用于接收文件流 * **/ function getExce(ids) { var form = $("<form>"); form.at
阅读全文
摘要:背景:需要使用XShell在后台运行php服务 解决方法: 首先给到执行权限: Bash chmod +x Server.php 然后启动后台运行,并重定向到/dev/null Bash nohup php Server.php >/dev/null 2>&1 &
阅读全文
摘要:声明一个自定义特性,继承自ActionFilterAttribute: C# /// <summary> /// 负责进行统一的权限检查 /// </summary> public class CheckPermissAttribute : ActionFilterAttribute { publi
阅读全文
摘要:添加自定义的特性需要先继承ActionFilterAttribute 首先是实现源码: C# public class CheckLoginAttribute : ActionFilterAttribute { /// <summary> /// 负责系统的统一登录验证 /// </summary>
阅读全文
摘要:背景: 子页需要回到母页,使用window.location.href=“”会直接在子页弹窗中打开页面,而并非回到母页; 原代码: 母页相关代码: C# /** * 导入数据操作 */ function ImportData() { layer.open({ title:"导入台账应收实收统计",
阅读全文
摘要:使用Aspose.Cells对单元格进行合并,需要使用Aspose.Cells提供的方法:Merge 使用方法: cells.Merge(oldCount, 12, y , x); 其中oldCount为合并开始列,如我需要将2M-8M进行合并那么oldCount应为2M所在的行数既为:2 12表示
阅读全文
摘要:背景: bootstrapTable中备注列内容过长会导致展示效果不佳 解决方案: 进行处理,超出范围使用省略号,鼠标移至上方时展示详细信息 详细方案: 首先设置表格单元格、行、列的算法规则 算法规则设置为“列宽由表格宽度和列宽度设定” css源码: <table id="UserManger" s
阅读全文
摘要:效果图: 页面定制 CSS 代码: /*simplememory*/ #google_ad_c1, #google_ad_c2 {display:none;} .syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code,
阅读全文
摘要:样式效果: 步骤: 1、设置博客皮肤为:SimpleMemory 2、设置博客页面定制css样式: /* ********************** * 整体布局 * **********************/ /* 整体布局 */ body { background: #e6ecf0; fo
阅读全文
摘要:效果图: 设置博客为:SimpleMemory css: /*simplememory*/ #google_ad_c1, #google_ad_c2 {display:none;} .syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighli
阅读全文