这个功能本身并不复杂,但还是要注意,每个ng-model的对象必须是不同的,这样才能把它们分隔开。 下面是完整代码: JS: ?angular.module("myApp",[])
?.controller("inputController",function($scope){
???...
分类:
其他好文 时间:
2015-06-23 06:31:51
阅读次数:
105
require引用其他controllervar app = angular.modeule('myapp',[]);app.directive('common',function(){ return { ... controller: function($scope){ ...
分类:
其他好文 时间:
2015-06-23 00:51:58
阅读次数:
119
1.MVC 根据MVC的思想,UITableView作为View需要data source作为Model,需要view controller 和delegate作为Controller。UITableViewcontroller的实例同时满足这3个角色:view controller、data...
分类:
其他好文 时间:
2015-06-23 00:45:14
阅读次数:
1402
一. 上传表单在WeiBo/Home/View/User/index.html里写入以下代码:1 2 3 4 5 在WeiBo/Home/Controller/UserController.class.php中的代码为: 1 display();10 ...
分类:
Web程序 时间:
2015-06-22 22:03:06
阅读次数:
283
我是什么都学之前学.net(C#),后来学安卓,后来发现是java现在比较多的用php特别是用框架thinkphpphp到5.x之后好像引入了命名空间的概念,经常在thinkphp 3.2以后也有了命名空间的概念 看下下面的代码是不是很熟悉<?phpnamespace Home\Controller...
分类:
编程语言 时间:
2015-06-22 22:00:19
阅读次数:
173
1.What
The UICollectionViewController class
represents a view controller whose content consists of a collection view.
The UICollectionView class
manages an ordered collection of data items and...
分类:
移动开发 时间:
2015-06-22 16:23:59
阅读次数:
119
大学时曾经做过android的开发,目前的工作是iOS的开发。之前自己记录东西都是通过自己比较喜欢的笔记类的应用记录下了。直到前段时一个哥们拉着我注册了一个博客。现在终于想明白了,博客这个东西受众会稍微广泛一些,自己写的比较粗烂的东西可以得到大家的指正,可能有一点点比较好的东西可以给大家提供一个.....
分类:
移动开发 时间:
2015-06-22 11:04:53
阅读次数:
226
最近在做ITOO高校云平台考评系统考生模块儿,这部分的功能主要是实现为上课班学生配置考试安排,实现上课班学生与对应的考试,考场,试卷的添加,删除,修改。其中有一个业务是这样的,为查询到的班级及学院,添加考试和考场,需要从页面获取学院和班级id,查询该学院下的考试,通过考试查询该考试下的所有考场。
首先获取页面的值传,然后通过Ajax提交参数到controller,后台返回json,转变...
分类:
Web程序 时间:
2015-06-20 18:27:12
阅读次数:
163
service是单例对象,在应用中不同代码块之间共享数据。对一些公用的方法封装到service中,然后通过依赖注入在Controller中调用,示例代码:1.创建一个模块:var module = angular.module( "my.new.module", [] );2.创建一个service...
分类:
Web程序 时间:
2015-06-20 17:04:49
阅读次数:
250
在view视图里面@using (Html.BeginForm("uploadfile", "home", FormMethod.Post, new { enctype = "multipart/form-data"})){ }在controller [HttpPost] ...
分类:
Web程序 时间:
2015-06-20 14:19:05
阅读次数:
150