码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
LeetCode: Generate Parentheses 题解
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2014-06-18 11:15:22    阅读次数:149
http请求
关于$httpfunction PhoneListCtrl($scope, $http) { $http.get('phones/phones.json').success(function(data) { $scope.phones = data; }); $scope.orderPr...
分类:其他好文   时间:2014-06-18 10:49:35    阅读次数:188
[LeetCode ] Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-06-18 10:17:40    阅读次数:174
Jquery Table添加行、删除行
html页面代码Js代码 function DealUserInfo(qty){ if(qty>0) { var table1 = $("#tblUserInfo"); var...
分类:Web程序   时间:2014-06-18 10:07:03    阅读次数:232
基于jQuery的上下无缝滚动应用(单行或多行)
$(function(){ var _wrap=$('ul.line');//定义滚动区域 var _interval=2000;//定义滚动间隙时间 var _moving;//需要清除的动画 _wrap.hover(function(){ clearInterval(_moving)...
分类:Web程序   时间:2014-06-18 09:52:53    阅读次数:221
封装自己的Common.js工具库
Code/** * Created by LT on 2013/6/16. * Common.js * 对原生JS对象的扩展 * Object、Array、String、Date、Ajax、Cookie */;(function(){Object.extend =function(targetObj...
分类:Web程序   时间:2014-06-18 09:39:16    阅读次数:312
基于html5 localStorage , web SQL, websocket的简单聊天程序
new function() { var ws = null; var connected = false; var serverUrl; var connectionStatus; var sendMessage; var connectButton; var disconnectButton; var sendButton; var open = function(...
分类:数据库   时间:2014-06-17 19:35:50    阅读次数:220
webqq 获得好友列表hash算法 获得最新hash的方法
webqq获得好友列表的hash算法,大约每个月中旬会变动一次。知道怎么获得他就可以了。 js文件路径 http://web.qstatic.com/webqqpic/pubapps/0/50/eqq.all.js 加密算法为 P=function(b,i),有时候是 P=function(b,j) 直接打开这个文件后搜索P=function,有两个参数的就是。 把函数体拷贝下来后百度 js格式化工具,把内容放进去,格式化一下。...
分类:Web程序   时间:2014-06-17 19:05:37    阅读次数:267
extjs4 textfield width
extjs4.2控制form表单中field等组件的宽度。首先,确保form的layout是‘anchor’的。然后,在代码中配置anchor属性,如下图:initComponent:function(){ this.items=[{ xtype:‘textfield‘, padding:‘10005‘, anchor:‘30%‘, fieldLabel:‘申请书编号‘, name:‘appNum‘ },{ xtype:‘..
分类:Web程序   时间:2014-06-17 17:36:45    阅读次数:293
BASH 文本模版的简单实现 micro_template_compile
具体代码 ############################### # # Funciton: micro_template_compile # # Parameter: # [1] => template :String # [2..n] => values for placeholder as key=value # # Example: # <- micro_tem...
分类:其他好文   时间:2014-06-17 16:23:47    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!