11 2022 档案

摘要:window.performance: 用于测量网页和 Web 应用程序的性能 window.performance.getEntriesByType(): 返回一个 PerformanceEntry 对象的数组 window.performance.getEntriesByType("naviga 阅读全文
posted @ 2022-11-29 15:16 7c89 编辑
摘要:export default { json1:[ ['红色','黄色','蓝色'], ['s','m'], ['棉的','涤纶'], // [100,200,300,400] ], json2:[ { color:'红色', type:'s', mianliao:'棉的', price:100 }, 阅读全文
posted @ 2022-11-27 21:30 7c89 编辑
摘要:<template> <div> <table border="1" v-table-select="state"> <tr v-for="(rowData,rowIndex) of state.tableData" :key="rowIndex" > <th>{{rowData.row}}</th 阅读全文
posted @ 2022-11-27 18:40 7c89 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-11-26 20:02 7c89 编辑
摘要:this.$options._scopeId 阅读全文
posted @ 2022-11-26 13:33 7c89 编辑
摘要:<input id="inputBox" value="abcdefgh"> <script> var inputBox = document.getElementById("inputBox"); inputBox.selectionStart = inputBox.value.length - 阅读全文
posted @ 2022-11-14 08:43 7c89 编辑
摘要:创建元素:document.createElement 设置属性:setAttribute 添加文本:innerHTML 加入文档:appendChild var html = '<div>' + '<h4>字符串拼接动态修改测试</h4>' + '<input id="subcontent"></ 阅读全文
posted @ 2022-11-09 22:28 7c89 编辑
摘要:前端生成 html 字符串模板,并进行下载 通过字符串拼接出完整的 html 文件 使用 Blob 构造出一个 Blob 文件对象 使用 window.URL.createObjectURL 将文件对象解析成 url 将 url 放入 使用 a 标签的 download 属性下载 使用 window 阅读全文
posted @ 2022-11-03 10:16 7c89 编辑

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