Vue·Js 单独js文件属性读存接口暴露方式
//详情页面数据中转站 let user ="user1" ; //登陆者信息 let objInfo = "objInfo1" ; //文章信息 let arrFabulous = "arrFabulous1"; //点赞 let arrBBS = "arrBBS1"; //评论内容 /* 接收涵 */ function funUser(e){ this.user = e; }; function funInfo(e){ this.objInfo = e; }; function funFabulous(e){ this.arrFabulous = e; }; function funBBS(e){ this.arrBBS = e; }; export default { //函数接收 funUser, funInfo, funFabulous, funBBS, /* 暴露接口 */ user, arrBBS, objInfo, arrFabulous, }
782 Views