随笔分类 - js
摘要:downExcelTem = () => { let url = `${config.API_ROOT}/excelTemplateExport` let link = document.createElement('a') link.style.display = 'none' link.href
阅读全文
摘要:1.手动添加cookie,例如JSESSIONID 在 Console 下输入命令 document.cookie="JSESSIONID=value"
阅读全文
摘要:插件地址:http://www.bacubacu.com/colresizable/#download
阅读全文
摘要:1.组件 const watermark = ({ // 使用 ES6 的函数默认值方式设置参数的默认取值 container = document.body, width = '250px', height = '160px', textAlign = 'left', textBaseline =
阅读全文
摘要:/* 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' } };
阅读全文
摘要: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...
阅读全文