忽略eslint检查:
// eslint-disable-line
断点(查找bug):
debugger
打印:
window.print()
分页采用给标签添加样式style=“page-break-after:always”
刷新:
window.location.reload()
打开新窗口:
window.open()
window.location.href
拨打手机电话:
window.location.href = ‘tel://’ + phone(电话号码)
下载服务器储存模板:
window.open(‘https://BF.xlsx’)
url编码解码:
encodeURI(url) 编码 decodeURI(url) 解码
encodeURIComponent(url) 编码 decodeURIComponent(url) 解码