随笔分类 -  js

摘要:downExcelTem = () => { let url = `${config.API_ROOT}/excelTemplateExport` let link = document.createElement('a') link.style.display = 'none' link.href 阅读全文
posted @ 2021-12-03 10:52 _心之所向便是光 阅读(1069) 评论(0) 推荐(0) 编辑
摘要:1.手动添加cookie,例如JSESSIONID 在 Console 下输入命令 document.cookie="JSESSIONID=value" 阅读全文
posted @ 2021-03-26 14:48 _心之所向便是光 阅读(2506) 评论(0) 推荐(0) 编辑
摘要:插件地址:http://www.bacubacu.com/colresizable/#download 阅读全文
posted @ 2021-03-03 13:18 _心之所向便是光 阅读(310) 评论(0) 推荐(0) 编辑
摘要:1.组件 const watermark = ({ // 使用 ES6 的函数默认值方式设置参数的默认取值 container = document.body, width = '250px', height = '160px', textAlign = 'left', textBaseline = 阅读全文
posted @ 2020-11-24 10:13 _心之所向便是光 阅读(624) 评论(0) 推荐(0) 编辑
摘要:/* http.js */ import 'whatwg-fetch' // HTTP 工具类 export default class Http { static async request(method, url, data) { const param = { method: method, headers: { 'Content-Type': 'application/json' } }; 阅读全文
posted @ 2019-08-26 15:09 _心之所向便是光 阅读(840) 评论(0) 推荐(0) 编辑
摘要:function getDate() { var myDate = new Date(); var month = myDate.getMonth() + 1; var Day = myDate.getDate(); var today = ""; if (month < 10) { if (Day < 10) { today = myDate.getFu... 阅读全文
posted @ 2019-07-09 16:58 _心之所向便是光 阅读(263) 评论(0) 推荐(0) 编辑

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