实现公式:{{orderBy_expression |
orderBy:expression:reverse}}Examplevar app=angular.module("myApp",[]);
app.controller("Ctrl",function($scope){ $scope.fri....
分类:
Web程序 时间:
2014-07-22 23:07:52
阅读次数:
960
cocos2d-x 3.0 + cocosbuilder
3.0使用中发现每个按钮回调都要写一行对应的回调如:1 local function onMenuItemAClicked()2 ...3 end4 5
TestMenusLayer["onMenuItemAClicked"] = o...
分类:
其他好文 时间:
2014-07-22 23:06:54
阅读次数:
321
$.ajax({type:"get", url:"http://",
data:"name="+userid+"&password="+password,async:true,
error:function(request){alert("Connectionerror"); }, success:...
分类:
Web程序 时间:
2014-07-22 23:06:54
阅读次数:
373
1、setTimeout() setTimeout()
方法用于在指定的毫秒数后调用函数或计算表达式。具体的格式是这样的setTimeout(code,millisec)
其中code是要执行的代码或者function,而millisec是间隔的时间(毫秒数) function empt...
分类:
其他好文 时间:
2014-07-22 23:06:14
阅读次数:
243
标签:例如注意,
此时button的点击事件不会调用jquery中的show(),如果没在js文件中直接书写function show(){}的话,会报错,
提示找不到show()但是在jquery中是可以调用jquery中的 function show() {}的,即可以调用上面的红色书写的sho...
分类:
编程语言 时间:
2014-05-01 16:13:24
阅读次数:
347
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-01 16:06:46
阅读次数:
427
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
function SearchCondition(){ this.startTime = "";
this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
分类:
Web程序 时间:
2014-05-01 15:36:22
阅读次数:
414
类型转换:function ToBoolean: Boolean;function
ToInteger: Integer;function ToSingle: Single;function ToDouble: Double;function
ToExtended: Extended;class f...
分类:
其他好文 时间:
2014-05-01 15:02:01
阅读次数:
382
由于项目中用到了hash,自己实现了一个。Hash = function () { }
Hash.prototype = { constructor: Hash, add: function (k, v) { if (!this.hasO...
分类:
Web程序 时间:
2014-05-01 13:44:25
阅读次数:
444