页面使用代码: 2.angularjsvarapp = angular.module("ControlState", []); app.controller("Home/Login",function($scope,$window) { $scope.login =function(user) { ...
分类:
Web程序 时间:
2015-02-25 18:27:46
阅读次数:
226
关于算法的讲解,个人觉得这篇博文写得非常好:http://blog.csdn.net/dark_scope/article/details/8880547我的代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 ...
分类:
编程语言 时间:
2015-02-23 15:24:41
阅读次数:
181
insert into 后获取自动插入的id:SELECT @@IDENTITY AS id如果是sql server 最好用select SCOPE_IDENTITY() as id因为@@identity全局的同类还有IDENT_CURRENT(‘table’)IDENT_CURRENT返回为任...
分类:
数据库 时间:
2015-02-19 21:47:36
阅读次数:
307
2. 其实LZ要理解这个问题,要明白JS中的作用域(scope)。 每个函数在创建完成时,他有3个重要的内置属性(property)也同时被创建。{ AO //记录function内的变量,参数等信息 this // 就是在调用this.xx的时候的this ...
分类:
其他好文 时间:
2015-02-15 17:51:31
阅读次数:
151
默认情况下, AngluarJS不会为在一个Controller下的Directive创建一个单独的作用域(Scope). 这个Directive中的所有关于$scope的变量都是在它的Controller中定义, 并且会被其他的在同一Controller中的Directive所共享, 例如以下代码...
分类:
Web程序 时间:
2015-02-15 16:26:11
阅读次数:
461
在Cocos2d-x项目中用到了OpenGL,使用GL_LINE_SMOOTH开启线条抗锯齿。
ccDrawColor4B(50, 26, 12, 255);
// 设置线宽
glLineWidth(2.0f);
// 启用线段反锯齿
glEnable(GL_LINE_SMOOTH);
// 画第一条线
ccDrawLine(startPoint1,endPoint);...
分类:
移动开发 时间:
2015-02-13 16:35:48
阅读次数:
1973
var app =angular.module(‘myApp‘,[‘ngSanitize‘]);app.controller(‘ctrl‘,function($scope,$sce){ $scope.myHtml = ‘an html\n‘ + ‘click here\n‘ + ‘...
分类:
其他好文 时间:
2015-02-12 17:45:10
阅读次数:
100
Aselfobject, which is the global object representing the worker in this scope.对self对象的译法,未知妥否。 1 // Call the invertImage method when this worker recei...
分类:
Web程序 时间:
2015-02-11 23:16:34
阅读次数:
273
依赖范围控制哪些依赖在哪些classpath?中可用,哪些依赖包含在一个应用中。让我们详细看一下每一种范围: compile?(编译范围) compile是默认的范围;如果没有提供一个范围,那该依赖的范围就是编译范围。编译...
分类:
其他好文 时间:
2015-02-11 11:09:43
阅读次数:
180
Ext.Array.filter(Array array,Function fn,Object scope):Array
分类:
Web程序 时间:
2015-02-10 21:42:31
阅读次数:
178