随笔分类 -  前端

摘要:Print.js 官方文档:https://printjs.crabbly.com/ 重点:多页打印 经过读文档,print.js 有个功能是打印JSON。所以我们在打印JSON 的时候,只需要调接口拿到所有的数据,然后在打印就可以了。 import printJS from "print-js"; 阅读全文
posted @ 2022-05-26 08:20 Ning- 阅读(4315) 评论(0) 推荐(0) 编辑
摘要:上图: 校验: <script> export default { name: 'PersonTransferDetail', data() { const checkTrainNum = (rule, value, callback) => { if (value !== null && valu 阅读全文
posted @ 2022-05-07 11:49 Ning- 阅读(627) 评论(0) 推荐(0) 编辑
摘要:因公司项目要求,需要修改表单的样式: 上代码: <el-dialog width="55%" top="5vh" :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false 阅读全文
posted @ 2022-04-24 09:14 Ning- 阅读(2974) 评论(2) 推荐(0) 编辑
摘要:我们要开发小程序,基本上都要涉及到以下几个方面的工作: 1、购买服务器,用来运行后台及接口程序; 2、购买域名,小程序中需要通过域名来调用服务器的数据; 3、购买 SSL 证书,小程序强制需要 https 的地址,传统无证书不加密的 http 请求微信不支持; 4、后台程序员开发后台程序,这样才能登 阅读全文
posted @ 2022-02-18 14:26 Ning- 阅读(1481) 评论(0) 推荐(0) 编辑
摘要:http://www.ico51.cn/ 阅读全文
posted @ 2022-01-22 20:57 Ning- 阅读(194) 评论(0) 推荐(0) 编辑
摘要://跳转到相应位置 to() { if (this.$route.query.id != null) { var toEl = document.getElementById(this.$route.query.id); if (toEl != null) { if (toEl != null && 阅读全文
posted @ 2022-01-21 18:38 Ning- 阅读(716) 评论(0) 推荐(0) 编辑
摘要:思路:我们可以利用js的正则表达式来匹配搜索的关键字,匹配的文字变红之后的文字在写入网页。 js正则表达式: var re1 = /ABC\-001/; var re2 = new RegExp('ABC\\-001'); re1; // /ABC\-001/ re2; // /ABC\-001/ 阅读全文
posted @ 2022-01-13 15:32 Ning- 阅读(1212) 评论(0) 推荐(1) 编辑
摘要:1、Vue基于vue-quill-editor富文本编辑器使用心得:https://www.cnblogs.com/ZaraNet/p/10209226.html 2、使用vue-quill-editor,获得到输入内容的html,怎样才能在外部的div中有跟编辑器里: 用v-html绑定一下就行了 阅读全文
posted @ 2022-01-12 17:10 Ning- 阅读(1482) 评论(0) 推荐(0) 编辑
摘要:响应式布局 参照了 Bootstrap 的 响应式设计,预设了五个响应尺寸:xs、sm、md、lg 和 xl。 <el-row :gutter="10"> <el-col :xs="8" :sm="6" :md="4" :lg="3" :xl="1"></el-col> <el-col :xs="4 阅读全文
posted @ 2021-12-22 09:41 Ning- 阅读(7825) 评论(0) 推荐(0) 编辑
摘要:el-menu 添加 :default-active=“this.$router.path” 和 router (default-active前面要有 “:” ) router.js文件下应该配置好路由路径。建议用路由懒加载方式 //import main from './pages/main.vu 阅读全文
posted @ 2021-12-21 18:33 Ning- 阅读(7665) 评论(0) 推荐(0) 编辑
摘要:首先我们要明白一个前提,CommonJS模块规范和ES6模块规范完全是两种不同的概念。 CommonJS模块规范 Node应用由模块组成,采用CommonJS模块规范。 根据这个规范,每个文件就是一个模块,有自己的作用域。在一个文件里面定义的变量、函数、类,都是私有的,对其他文件不可见。 Commo 阅读全文
posted @ 2021-12-15 09:43 Ning- 阅读(44) 评论(0) 推荐(0) 编辑
摘要:函数:split() 功能:使用一个指定的分隔符把一个字符串分割存储到数组例子:str=”jpg|bmp|gif|ico|png”;arr=theString.split(”|”);//arr是一个包含字符值”jpg”、”bmp”、”gif”、”ico”和”png”的数组 函数:John() 功能: 阅读全文
posted @ 2021-06-18 19:26 Ning- 阅读(59) 评论(0) 推荐(0) 编辑
摘要:页面: xml代码: <button name="savebill" caption="保存" /> <button name="examine" caption="审核" /> <button name="noexamine" caption="反审核" /> <button name="topa 阅读全文
posted @ 2021-04-11 11:57 Ning- 阅读(715) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示