2024年1月11日

vue中引入js文件,在js文件中拼接html,拼接的html中有img

摘要: '<div class="dzjgMap_sj"><img src="' + require("../../assets/images/sj@2x.png") + '" alt=""><span>2021-01-02 14:56:45</span></div>'其中的图片路径是相对于引入的vue文件 阅读全文

posted @ 2024-01-11 16:40 唠叨的意志 阅读(24) 评论(0) 推荐(0) 编辑

2023年11月10日

vue3项目的滚动插件

摘要: vue3-seamless-scroll 阅读全文

posted @ 2023-11-10 17:11 唠叨的意志 阅读(68) 评论(0) 推荐(0) 编辑

2023年3月3日

边框渐变色

摘要: .home_dqjx_table_khlx{ padding:0 8px; height: 20px; border: 1px solid transparent; border-radius: 2px; background-clip: padding-box, border-box; backg 阅读全文

posted @ 2023-03-03 17:50 唠叨的意志 阅读(12) 评论(0) 推荐(0) 编辑

2022年10月17日

element3 form表单校验对象里面有对象的情况

摘要: let formSearch = reactive({ queryParam: [ { field: "", //查询的字段 gzcs: "", //规则参数 cxcs: "", //查询参数 selectList3: [],//下拉框选项 selectList4: [],//下拉框选项 input 阅读全文

posted @ 2022-10-17 11:17 唠叨的意志 阅读(67) 评论(0) 推荐(0) 编辑

vue vant3上传图片文件以流的形式上传

摘要: axios.post("/fjt_fast/sys/comm/upload", { file: param.file}, { headers: { 'Content-Type': 'multipart/form-data' },}).then((res) => { }).catch(e=>{ }); 阅读全文

posted @ 2022-10-17 11:12 唠叨的意志 阅读(302) 评论(0) 推荐(0) 编辑

vue3导出功能

摘要: proxy.$axios.own.get(url,{ responseType: 'blob' //首先设置responseType字段格式为 blob}).then(res => { let blob = new Blob([res.data], {type: "application/vnd.o 阅读全文

posted @ 2022-10-17 11:10 唠叨的意志 阅读(382) 评论(0) 推荐(0) 编辑

2022年2月8日

vue请求插件axios响应拦截302

摘要: axios.interceptors.response.use(function (response) { return response;}, function (error) { // 对请求错误做些什么 if (302 error.response.status) { window.locat 阅读全文

posted @ 2022-02-08 17:02 唠叨的意志 阅读(1571) 评论(0) 推荐(0) 编辑

2021年12月8日

vue项目中使用axios上传图片等文件

摘要: import axios from 'axios' // 添加请求头 update (e) { // 上传照片 let self = this let file = e.target.files[0] /* eslint-disable no-undef */ let param = new For 阅读全文

posted @ 2021-12-08 11:45 唠叨的意志 阅读(472) 评论(0) 推荐(0) 编辑

2019年10月28日

JS在光标处插入内容

摘要: $.fn.insertText = function (text) { var obj = $(this)[0]; var range, node; if (!obj.hasfocus) { obj.focus(); } if (document.selection && document.sele 阅读全文

posted @ 2019-10-28 15:31 唠叨的意志 阅读(1092) 评论(0) 推荐(0) 编辑

2018年11月21日

像电脑屏保一样的气泡碰撞效果

摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <title>Title</title> 7 <style> 8 * { 9 margin: 0; 10 padding: 0 11 } 12 13 阅读全文

posted @ 2018-11-21 13:52 唠叨的意志 阅读(911) 评论(0) 推荐(0) 编辑

导航