摘要: 1,新建项目 2,右键工程打开 -->属性 3,右键工程--》发布--》选择发布到文件夹 4,IIS设置应用程序池 5,调试--》附加到进程 阅读全文
posted @ 2020-06-14 00:31 酷鱼cooolyu 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 根目录创建router.js import Vue from 'vue' import router from 'vue-router' Vue.use(router); export default new router({ routes: [{ path: '/', component: req 阅读全文
posted @ 2020-06-14 00:14 酷鱼cooolyu 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 如果是在IIS二级目录,项目的静态文件路径可能有问题,相对路径不正常! 解决办法: 添加:vue.config.js 设置: module.exports = { publicPath: './' } 阅读全文
posted @ 2020-06-14 00:11 酷鱼cooolyu 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 实例: vue前端 this.$http .post("http://192.168.1.102/api/WeatherForecast/Set", { Id: 123 ,name:"qqq"}) .then(res => { console.log(res); }); } 后端: 方案1:(代码较 阅读全文
posted @ 2020-06-14 00:08 酷鱼cooolyu 阅读(2250) 评论(0) 推荐(1) 编辑
摘要: 参考代码:https://blog.csdn.net/tangyan1207/article/details/74937645 解决了FileReader不支持readAsBinaryString方法的问题, 解决了MD5相同的问题 HTML+JS部分: 服务器代码(c# mvc) 阅读全文
posted @ 2019-04-11 23:00 酷鱼cooolyu 阅读(1344) 评论(2) 推荐(0) 编辑
摘要: 背景: EF Code First在经历新业务或者业务逻辑变更时,可能会遇到数据库的更改,比如新增表 ,更改表加字段,等等。这个时候,删除原来的数据库重建会丢失数据。 方案1: 如果初次开发,可以选择删除重建。 代码: public TestDbContext() : base("Name=Test 阅读全文
posted @ 2019-03-30 22:36 酷鱼cooolyu 阅读(130) 评论(0) 推荐(0) 编辑