- 博客(2)
- 收藏
- 关注
原创 使用node批量替换与正则匹配的文件内容
const FS = require(‘fs’); var parameters = { path: ‘./View’, regular: /css/gm, new_content: ‘js’, is_treatment_sub_file: true } // path 文件夾路徑 例如 ‘./View’ // regular 要替換的正則匹配規則 例如 ‘/.css"/gm’ // new_content 需要替換上去的內容 例如 ‘/.css?v=1"’ // is_treatment_sub_file
2021-03-10 21:01:03 1591
原创 选中页面的文字后同步找到 textarea 内的对应文字,并选中和自动滚动到相应位置
效果图 实现代码 var showPdfView = document.getElementById('showPdfView') //选择的文本 showPdfView.onclick = function (e) { var select_str = getSelectionField(e) if (select_str === ''){ return } var textarea = document.getElementById('showPdf
2020-11-17 17:55:13 795 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人