Android
笨小康
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ionic Angularjs 产生简单的列表滚动区域
通过嵌套一个Y轴的滚动区域,实现X轴滚动时,栏位跟着滚动Y轴滚动时,栏位不向上滚动缺点:只能通过拖动栏位名实现X轴的滚动ion-scroll zooming="true" direction="x" style="width:99%; " has-bouncing="false"> div class="row"> 单身的明细--> di原创 2015-06-22 09:22:07 · 2339 阅读 · 0 评论 -
AngularJs 保存人员信息的方法
1、LocalStorage保存在本地存储中,可以被利用作为自动登录2、SessionStorage保存在浏览器中,浏览器关闭,信息清除3、$rootscope应用的根作用域,所有controller都可以调用推荐:在拦截器中根据具体情况,加入人员的验证信息.config(function($httpProvider) { $httpProvider.int原创 2015-08-14 16:54:06 · 2441 阅读 · 0 评论 -
angularjs 切换页面传参数
去往下一页:$state.go('app.purchase_home',{pur_arrival_no:pur_arrival_no});导航中直接用:ion-item nav-clear menu-close href="#/app/purchase_home/Y">app.js中:.state('app.purchase_home', { url原创 2015-08-26 22:33:17 · 1066 阅读 · 0 评论 -
angularjs 去往其他页面,目标页面controller中的方法无法自动加载
angularjs 去往其他页面,目标页面controller中的方法无法自动加载:如下,就无法执行,报错方法undifined.controller(xxxx,function(xx,xx,xx)if(xxxx){&scope.function_a();}&scope.function_a(){xxxxxx;}})原因:controller中原创 2015-08-26 22:40:15 · 1313 阅读 · 0 评论 -
web 程式 转换成exe
原理:将web程式和chrome的内核进行打包,生成exe档案工具:node-webkit、electron atom、源码包(名字忘了,.net的)问题:1、无法做列印预览,node-webkit的0.13可以,但是试用版,有其他很多问题,直接用window.print()electron atom 也无法列印预览附加解决方案:有人用客户端控件使用成功了2、无法做原创 2015-08-26 22:47:14 · 750 阅读 · 0 评论 -
angularjs 前端传递人员验证信息给后台
.config(function($httpProvider) { $httpProvider.interceptors.push(function($rootScope,$timeout) { return { request: function(config) { $rootScope.$broadcast('lo原创 2015-08-26 10:33:30 · 1087 阅读 · 0 评论 -
AngularJs ng-model在input中无效,js无法调用
html:focus-me="focusTicket" />js:$scope.transferinside.transfer_in_no 调用无效$scope.flag调用有效解决办法:先声明 $scope.transferinside=[]; 再调用时OK具体原因。。。不是很明确原创 2015-06-23 20:08:54 · 2978 阅读 · 2 评论 -
angularjs 中行的选定及行样式的设定
CSS:.seleted{background-color:lightgreen}.modified{font-weight:bold;color:chocolate}html:" ng-class='{selected:$index==selectedRow,modefied:$index==addedRow}'ng-click='selectRestaurant原创 2015-06-22 17:07:53 · 2408 阅读 · 0 评论 -
ionic AngularJS-设定ion-scroll div 动态高度
在ion_scroll中,必须设定固定的高度后才能实现Y方向的滚动,但是对于不同高度的窗口,需要根据实际情况进行设定其高度设定该ion_scroll的ng_style属性,ng-style="grid_height"js中设定动态的高度,页面的高度-header-foot及其他固定的高度$scope.grid_height={height:''+document.getElemen原创 2015-06-22 09:15:17 · 5114 阅读 · 0 评论 -
ionic angularjs 实现Enter键的提交
input type="text" placeholder="扫描需求单据二维码" ng-model="scaninfo.transfer_in_no" ng-enter="getTransfer(scaninfo.transfer_in_no);">directives.jsangular.module('starter.directives',[]) .directi原创 2015-06-22 09:25:17 · 4077 阅读 · 0 评论
分享