04 2016 档案
Jquery 替换全部花括号
摘要:js:var str="{aaa}123{aaa}";str.replace(/\{aaa\}/g, "111"); 阅读全文
posted @ 2016-04-29 11:45 qinyahui 阅读(637) 评论(0) 推荐(0)
angularjs kindEditor 中自定义按钮 弹出dialog
摘要:1.angular-kindeditor.js 第38行左右加editorConfig.items = ["placehoder"];2.en.js 第234行 placeholder : 'placeholder'3./placeholder/placehoder.js KindEditor.pl 阅读全文
posted @ 2016-04-27 14:25 qinyahui 阅读(610) 评论(0) 推荐(0)
angularjs 教程网址参考
摘要:http://www.ituring.com.cn/article/203546 阅读全文
posted @ 2016-04-25 11:03 qinyahui 阅读(90) 评论(0) 推荐(0)
angularjs kindEditor 中content获得不到值
摘要:angularjs kindEditor 中content获得不到值需要修改下angular-kindeditor.js angular-kindeditor.jsif (KindEditor) { var editor = KindEditor.create(editorId, editorCon 阅读全文
posted @ 2016-04-22 10:21 qinyahui 阅读(450) 评论(0) 推荐(0)
angularjs 将带标签的内容解析后返回
摘要:参考地址:http://okashii.lofter.com/post/1cba87e8_29e0fab 引入angular-sanitize.js文件 注入ngSanitize 页面数据绑定 ng-bind-html = "vm.topicDetail.udHelpTopicContent" 阅读全文
posted @ 2016-04-20 19:01 qinyahui 阅读(269) 评论(0) 推荐(0)
angularjs-googleMap googleMap api地址解析与反解析
摘要:1.js:根据地址得到经纬度var myplace=$scope.place;//获取输入的地址var geocoder = new google.maps.Geocoder();//创建geocoder服务//调用geocoder服务完成转换geocoder.geocode( { 'address 阅读全文
posted @ 2016-04-15 11:00 qinyahui 阅读(380) 评论(0) 推荐(0)
angularjs-ngTable select filter
摘要:jsp <td title="'Status'" filter="{status: 'select'}" filter-data="fn.status($column)" sortable="'status'">{{promotion.status==0?'Disabled':'Active'}}< 阅读全文
posted @ 2016-04-15 10:40 qinyahui 阅读(400) 评论(0) 推荐(0)
angularjs-ngModel 控制页面的宽度
摘要:jsNiDialog.open({ windowClass: '', size:'elements', backdrop: 'static', keyboard: false, templateUrl: '/static/tpl/admin/dialogs/addElements.tpl', con 阅读全文
posted @ 2016-04-15 10:33 qinyahui 阅读(545) 评论(0) 推荐(0)
angularjs-ngModel传值问题
摘要:js 阅读全文
posted @ 2016-04-15 10:28 qinyahui 阅读(696) 评论(0) 推荐(0)
Jquery中去除左右空格
摘要:$.trim(" abc "); jQuery.trim(" abc "); 阅读全文
posted @ 2016-04-11 18:09 qinyahui 阅读(958) 评论(0) 推荐(0)
reactjs 入门
摘要:地址搜集:http://www.cocoachina.com/webapp/20150604/12035.html class 属性需要写成 className ,for 属性需要写成 htmlFor ,这是因为 class 和 for 是 JavaScript 的保留字。 this.props.c 阅读全文
posted @ 2016-04-06 18:19 qinyahui 阅读(124) 评论(0) 推荐(0)
angularjs ngTable -Custom filter template-calendar
摘要:jsp页面:<script type="text/ng-template" id="path/to/your/filters/top-Date-One.html"> <input type="text" ng-click="popup1.opened=!popup1.opened" uib-date 阅读全文
posted @ 2016-04-06 16:40 qinyahui 阅读(1002) 评论(0) 推荐(0)
sql 中条件in参数问题
摘要:经常遇到条件为in的模糊查询,sql传参可以在service中直接传递参数,不必使用占位符 select * from ud_order where status in ("+status+")参数status是为字符串类型即可。 阅读全文
posted @ 2016-04-05 14:58 qinyahui 阅读(1318) 评论(0) 推荐(0)