11 2017 档案

AngularJS上传图片
摘要:只是我的方法,仅供参考 html部分 js部分 后台controller部分: 阅读全文

posted @ 2017-11-30 11:10 Yoooshiki 阅读(207) 评论(0) 推荐(0)

本地文件夹http服务器http-server
摘要:本地文件夹http服务器,简单来说,就是使用http访问本地文件夹( 地址),而不是以 开头,两者的区别就是,前者是本地服务器,后者只是访问本地文件。 为什么要部署本地文件夹http服务器? 可以方便实现跨域和防止跨域(google表现的同源策略)等。 比如,我在进行Vue的实例是,请求了本地文件夹 阅读全文

posted @ 2017-11-28 19:56 Yoooshiki 阅读(6266) 评论(0) 推荐(0)

npm与cnpm介绍
摘要:部分转载:http://blog.csdn.net/shelly1072/article/details/51524029 一、npm介绍 说明:npm(node package manager)是node.js的包管理器,用于node插件管理(包括安装、卸载、管理依赖等),只要安装了Node.js 阅读全文

posted @ 2017-11-27 19:30 Yoooshiki 阅读(287) 评论(0) 推荐(0)

NPM ERR!无法安装任何包的解决办法
摘要:转载:http://blog.csdn.net/gebitan505/article/details/48177405 npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm 阅读全文

posted @ 2017-11-27 19:28 Yoooshiki 阅读(1074) 评论(0) 推荐(0)

AngularJS中复选框(checkbox)的ng-model
摘要:`ng model` 是 AngularJS 中的一个重要属性,表示数据的双向绑定。 但是当其作用在复选框中时,与其他可输入文本的表单又稍有区别。 复选框中的 ,其值只有 和 不用想,就知道代表的是『是否选中』的意思。 比如,页面初始化时,我在controller中定义如下: 而页面方面: 那么其效 阅读全文

posted @ 2017-11-24 15:21 Yoooshiki 阅读(10195) 评论(0) 推荐(0)

AngularJS将时间戳格式化处理
摘要:![image_1bvm9rcpk1p7f4ies40n0886h9.png 2.3kB][1] ![image_1bvm9t16612mdb9r1ds919dt5tkm.png 2.5kB][2] [1]: http://static.zybuluo.com/Yoshiki/j2ulaeu0r69 阅读全文

posted @ 2017-11-24 14:03 Yoooshiki 阅读(260) 评论(0) 推荐(0)

Let definitions are not supported by current JavaScript version
摘要:随着ECMAScript6.0的到来,我们可以在JS中使用比 更为完美的 , 但是如果idea中不设置JavaScript的版本,那么使用 将会报出以下错误: Let definitions are not supported by current JavaScript version 设置Java 阅读全文

posted @ 2017-11-24 11:10 Yoooshiki 阅读(700) 评论(0) 推荐(0)

MyBatis中的 suffixOverrides="," 失效
摘要:如图,虽然添加了suffixOverrides="," ,但是在实际的sql语句中最后还是多出了一个逗号: ![image_1bvk22ud2cap1rv51j7b224gvp.png 112.5kB][1] ![image_1bvk2qq83g9f1st59q1bb41ou416.png 78.9 阅读全文

posted @ 2017-11-23 18:02 Yoooshiki 阅读(1757) 评论(0) 推荐(0)

MyBatisSystemException: Malformed OGNL expression: status != null
摘要:错误信息: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'status ! 阅读全文

posted @ 2017-11-23 17:57 Yoooshiki 阅读(11113) 评论(0) 推荐(0)

MySQL字符串截取
摘要:今天在做表查询,查询内容如下: ![image_1bvjq594io037631i1khi1b829.png 35.1kB][1] 字段是yyyy MM格式的varchar类型,但是我 只想取到月份,不想显示年份, 于是这就有了一个字符串截取的需求:我要通过MySQL的字符串截取函数,只取 后面的内 阅读全文

posted @ 2017-11-23 15:01 Yoooshiki 阅读(203) 评论(0) 推荐(0)

AngularJS中实现下拉搜索框
摘要:先上效果,带有搜索功能: ![image_1bvhghr9g1pe55u0eh583fmdg29.png 10.8kB][1] 前端JS框架使用的是AngularJS. 一、从后台获取树形数据 获取到的树形结构是这个样子的,数组对象: ![image_1bvhgmd6u1f4l1nd66t31bo4 阅读全文

posted @ 2017-11-22 18:01 Yoooshiki 阅读(1161) 评论(0) 推荐(0)

堆栈和队列
摘要:转载自:https://www.w3cplus.com/javascript/array part 3.html 栈和队列都是动态的集合,在栈中,可以去掉的元素是最近插入的那一个。栈实现了后进先出。在队列中,可以去掉的元素总是在集合中存在的时间最长的那一个。队列实现了先进先出的策略。 一、堆栈的基本 阅读全文

posted @ 2017-11-18 00:33 Yoooshiki 阅读(802) 评论(0) 推荐(0)

使用BigDecimal进行运算
摘要:一、MySQL中的decimal类型 在MySQL数据库中,有个decimal类型。 sql decimal(8,2) NOT NULL COMMENT '单价', 其中,8表示有效位数,也就是整数+小数一共不超过8位,2表示保留2个小数位。 就表示数值中共有8位,其中6位整数,2位小数。 例: , 阅读全文

posted @ 2017-11-17 22:23 Yoooshiki 阅读(758) 评论(0) 推荐(0)

MyBatis返回插入的主键ID
摘要:使用MyBatis,通常我们都会执行这一步新增的操作: 表示影响的行数。 在将VO对象传到mapper层的时候, 并没有id,id设置的是自增。 需求:使用MyBatis往MySQL数据库中插入一条记录后,需要返回该条记录的自增主键值。 一、xml方式 关键代码就是 keyProperty SELE 阅读全文

posted @ 2017-11-17 17:56 Yoooshiki 阅读(294) 评论(0) 推荐(0)

多表连接查询问题
摘要:``` sql select p.id,p.full_name,p.short_name,p.py_code,p.building_type,d.name from tb_project p,tb_dict_entity d where d. =p.building_type and d.type_ 阅读全文

posted @ 2017-11-07 20:19 Yoooshiki 阅读(250) 评论(0) 推荐(0)

导航