摘要: Vue2.0环境安装 1、 安装Nodejs,地址:https://nodejs.org/en/ 版本"node": ">= 4.0.0", "npm": ">= 3.0.0", 6以上Node自带npm; Npm上的资源会被墙掉 建议使用淘宝镜像cnpm; Npm 安装cnpm; 执行命令:npm 阅读全文
posted @ 2017-12-19 15:41 anunicode 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 问题出在:Controller 中 @RequestParam 不能接收 contentType : "application/json; charset=utf-8" 的请求。 如果后台必须要用@RequestParam, 前台2个地方必须改: 1、contentType 改为 "applicat 阅读全文
posted @ 2017-12-04 11:41 anunicode 阅读(2575) 评论(0) 推荐(0) 编辑
摘要: 最近开发页面, 出现一个问题, 弹框在谷歌浏览器正常,在火狐浏览器中, 当滚动条滚动之后,弹框就显示在上面,也就是说document.body.scrollTop 它只适用于google浏览器, 火狐浏览器就要改为document.documentElement.scrollTop,但是如果做兼容的 阅读全文
posted @ 2017-11-14 13:40 anunicode 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 开门见山,最近利用空闲时间开发了一个简单的后端服务,从表里查询数据,一个简单的前端页面,通过Ajax请求访问后端接口,遇到了浏览器跨域的问题。 我后端的服务是localhost:8080,前端Hbuilder 开发页面默认的是localhost:8020,很显然请求是失败的。用nginx 反向代理, 阅读全文
posted @ 2017-10-26 11:15 anunicode 阅读(812) 评论(0) 推荐(1) 编辑
摘要: 1,File——new——Spring Starter Project; 2,you can define this three item's value, then click next; 3,you just need to select the web item, then click Fin 阅读全文
posted @ 2017-10-16 15:18 anunicode 阅读(155) 评论(2) 推荐(0) 编辑
摘要: 为了自己和大家的学习,把自己用过的ui框架整理了一些,以后可以直接用了。 1、H-ui:http://www.h-ui.net/Hui-overview.shtml; 2、Element UI:http://element.eleme.io/#/zh-CN/component/installatio 阅读全文
posted @ 2017-10-12 14:47 anunicode 阅读(147) 评论(0) 推荐(0) 编辑