一.tools文件夹下tools文件中封装下载方法:
const iframeId = 'download_file_iframe'
function iframeEle (src) {
let ele = document.getElementById(iframeId)
if (!ele) {
ele = document....
实例如下:
document.onkeydown = function (e) {
if (!e) e = window.event;
if ((e.keyCode || e.which) == 13) {
var obtnLogin = document.getElementById("submit_btn"); //submit_bt...