文章前面研究ng-file-upload可能涉及指令: You can use ng-model or ngf-change instead of specifying function for ngf-drop and ngf-select ngf-change "点击"."取消"按钮不触发该事件,双击文件进行选择才触发 ng-before-model-change="beforeChange($files, $file, $newFiles, $dup
最近在用mybatis,之前用过ibatis,总体来说差不多,不过还是遇到了不少问题,再次记录下, 比如说用#{},和 ${}传参的区别, 使用#传入参数是,sql语句解析是会加上"",比如 select * from table where name = #{name} ,传入的name为小李,那么最后打印出来的就是 select * from table where name = ‘小李’,就是会当成字符串来解析,这样相比于$的好处是比较明显对的吧,#{}传参能防止sql注入,如
1.优化Myrequest import requests from conf.setting import log class MyRequest(): @staticmethod def post(url,data=None,cookie=None,header=None,is_json=False,files=None,params=None): data = data if data else {} cookie = cookie if cookie else {} header = h
总结: 1.mybaits配置工2方面: i行为配置,如数据源的实现是否利用池pool的概念(POOLED – This implementation of DataSource pools JDBC Connection objects to avoid the initial connection and authentication time required to create a new Connection instance.This is a popular approach fo