摘要: 数据库中存储的是html序列化后的文本 前端页面获取时只需要使用v-html标签即可 <p v-html="item.content">{{item.content}}</p> 展示效果 备注:VUE3.0的使用方法,需要把<p>标签中的内容删除,如下所示 <p v-html="item.conte 阅读全文
posted @ 2022-04-26 01:37 勤快的懒羊羊 阅读(2258) 评论(0) 推荐(0) 编辑
摘要: 1 var _this = this; 2 axios.post('http://localhost:8080/login', { 3 params: { 4 user: this.user, 5 pass: this.pass 6 } 7 }).then(function (response) { 阅读全文
posted @ 2022-04-26 01:32 勤快的懒羊羊 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 <head> 2 <meta charset="UTF-8"> 3 <title>Summernote</title> 4 <link href="http://www.jq22.com/jquery/bootstrap-3.3.4.css" rel="stylesheet"> 5 <scrip 阅读全文
posted @ 2022-04-26 01:28 勤快的懒羊羊 阅读(771) 评论(0) 推荐(0) 编辑
摘要: 1 const _this = this; 2 const params = new URLSearchParams(); 3 params.append('title', _this.repositoryTitle); 4 params.append('content', _this.InputC 阅读全文
posted @ 2022-04-26 01:24 勤快的懒羊羊 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: 1 //弹窗提示框1 2 alert1: function () { 3 this.$message('这是一条消息提示'); 4 }, 5 //弹窗提示框2 6 alert2: function () { 7 this.$message({ 8 message: '恭喜你,这是一条成功消息', 9 阅读全文
posted @ 2022-04-26 01:22 勤快的懒羊羊 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 解决方法一、 input输入框不能输入,是因为没有绑定值 <el-input v-model="" 这里,没有绑定数据 placeholder="搜索" class="input-with-select" style="height: 45px"></el-input> data() { retur 阅读全文
posted @ 2022-04-26 01:20 勤快的懒羊羊 阅读(7903) 评论(0) 推荐(0) 编辑
摘要: 1 mounted:function(){ 2 //实时监控调用是否登录接口 3 //定时器 4 const timer = setInterval(() => { 5 this.isLogin();//你所加载数据的方法 6 7 }, 610000)//秒查询一次是否登录 8 //销毁定时器 9 阅读全文
posted @ 2022-04-26 01:19 勤快的懒羊羊 阅读(1947) 评论(0) 推荐(0) 编辑
摘要: 1 new Vue({ 2 el: '#main', 3 data: { 4 selectRepositoryOfTopInputParam: []//初始化页面,展示前10条内容 5 }, 6 7 beforeCreate: function () { 8 //页面初始化 9 this.$next 阅读全文
posted @ 2022-04-26 01:16 勤快的懒羊羊 阅读(3593) 评论(0) 推荐(0) 编辑