忙里偷闲啊... 1 getMethods(); 33 $arMethods = objarray_to_array($arMethods); 34 //print_r($arMethods); 35 function objarray_to_array($obj) { 36 ...
分类:
其他好文 时间:
2015-10-12 16:55:10
阅读次数:
196
题目:哈希函数在数据结构中,哈希函数是用来将一个字符串(或任何其他类型)转化为小于哈希表大小且大于等于零的整数。一个好的哈希函数可以尽可能少地产生冲突。一种广泛使用的哈希函数算法是使用数值33,假设任何字符串都是基于33的一个大整数,比如:hashcode("abcd") = (ascii(a) *...
分类:
其他好文 时间:
2015-10-12 15:46:03
阅读次数:
2822
题目: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...
分类:
其他好文 时间:
2015-10-12 14:10:18
阅读次数:
223
1./* -- 类式继承 -- *///先声明一个超类function Person(name) { this.name = name;}//给这个超类的原型对象上添加方法 getName Person.prototype.getName = function() { return this.n.....
分类:
Web程序 时间:
2015-10-12 12:35:50
阅读次数:
171
/*删除操作*/ rmvItem : function(grid, rowIndex, colIndex) { Ext.MessageBox .confirm("提示","确认要删除该代理吗?", function(id) { if (id == "yes") { ...
分类:
Web程序 时间:
2015-10-12 10:44:24
阅读次数:
574
原文:http://javascriptissexy.com/在JavaScrip中,function是内置的类对象,也就是说它是一种类型的对象,可以和其它String、Array、Number、Object类的对象一样用于内置对象的管理。因为function实际上是一种对象,它可以“存储在变量中,...
分类:
编程语言 时间:
2015-10-12 10:44:22
阅读次数:
276
自己读jQuery代码有些日子了,一直感觉没领悟到什么,一直也没有写些东东,来记录下自己的感悟,看到各位大神的blogs,就一直没勇气去写下来,纠结再三,觉得还是有必要写下点东西,不论幼稚,肤浅,只求自己有点长进...先看一下jQuery实例:1 jQuery = function( selecto...
分类:
Web程序 时间:
2015-10-12 00:28:29
阅读次数:
123
效果:html代码: panel content. panel content.JS代码:其中有些属性,之间的使用有冲突。tools属性,与href属性,与extractor属性,与loadingMessage属性,最为有用。$(function () { $('#p').pane...
分类:
其他好文 时间:
2015-10-12 00:20:46
阅读次数:
264
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...
分类:
其他好文 时间:
2015-10-11 23:09:34
阅读次数:
250
添加本地推送///本地添加 -(void)addLocalPushNotification:(UIButton*)sender;{NSLog(@"%s",__FUNCTION__);UILocalNotification*localNotification=[[UILocalNotification...
分类:
移动开发 时间:
2015-10-11 22:58:40
阅读次数:
430