怎么用原生JS实现类似jQuery的ajax建议你这样试试看:ajax函数:function ajax(opt) {opt = opt || {}opt.method = opt.method.toUpperCase() || 'POST'opt.url2023-02-21JavaScript140