摘要: 数据库拿出来的数据 // 从数据库歌单里获取歌曲 $.get('http://192.168.0.105:8888/songs',{},function(e){ // console.log(e); var str = ''; e.forEach(function(i) { str += `<a h 阅读全文
posted @ 2020-07-30 20:48 叶月廿柒 阅读(215) 评论(0) 推荐(0) 编辑
摘要: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 百度了半天都说是跨域问题, 解决办法: 设置请求头 阅读全文
posted @ 2020-07-30 15:30 叶月廿柒 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 1.创建文件夹service 2.shift+右键打开powershell 3.进入文件夹并初始化 4.查看内容 安装express包 在service文件夹下建个js文件 编辑js文件 const express = require('express') const app = express() 阅读全文
posted @ 2020-07-30 10:28 叶月廿柒 阅读(275) 评论(0) 推荐(0) 编辑