一、请写出导入导出的所有方式
1.
import {userName,age} from "./day28.js"
import {userName as aaa} from "./day28.js"
import abc from "./day28.js"
import * as abc from "./day28.js"
export {userName,age}
export {userName as names}
export default userName;
二、
请使用jq通过get和post调用接口http://index.com数据并接收,get和post传id=99
get("http://http://index.com",{id=99},function(data,status){
console.log(data);
});
$.post("http://index.com",{
"id":99
},function(data,status){
console.log(data);
});