码迷,mamicode.com
首页 > 2015年11月28日 > 全部分享
jQuery $.each用法
通过它,你可以遍历对象、数组的属性值并进行处理。使用说明each函数根据参数的类型实现的效果不完全一致:1、遍历对象(有附加参数)$.each(Object, function(p1, p2) { this; //这里的this指向每次遍历中Object的当前属性值 p1; p2; //访问附加参数...
分类:Web程序   时间:2015-11-28 12:05:42    阅读次数:129
用Java操纵HBase数据库(新建表,插入,删除,查找)
java代码如下:package db.insert;/* * 创建一个students表,并进行相关操作 */import java.io.IOException;import java.io.Serializable;import java.util.ArrayList;import java....
分类:数据库   时间:2015-11-28 12:06:49    阅读次数:264
SQL*Plus环境下创建PLUSTRACE角色
普通用户在SQL*Plus中开启AUTOTRACE报告时,遇到SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled错误。如下所示: SQL> SQL> set autotrace on; SP2-0...
分类:数据库   时间:2015-11-28 12:06:39    阅读次数:231
Welcome.java
1 public class Welcome{2 3 public static void main(String[]args){4 System.out.println("Welcome to java Programming!")5 }6 7 }
分类:编程语言   时间:2015-11-28 12:05:49    阅读次数:133
Upgrade Bioconductor
(1)Checking Version of Bioconductor> source("http://bioconductor.org/biocLite.R")Bioconductor version 2.14 (BiocInstaller 1.14.3), ?biocLite for helpA...
分类:其他好文   时间:2015-11-28 12:07:07    阅读次数:226
234. Palindrome Linked List
题目:Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?链接:http://leetcode.com/problems/p...
分类:其他好文   时间:2015-11-28 12:06:46    阅读次数:140
LeetCode 278 First Bad Version
LeetCode 278 First Bad Version// Forward declaration of isBadVersion API.bool isBadVersion(int version);int firstBadVersion(int n) { int start=1, e...
分类:其他好文   时间:2015-11-28 12:04:35    阅读次数:122
Android截图命令screencap
查看帮助命令bixiaopeng@bixiaopeng ~$ adb shell screencap -vscreencap: invalid option -- vusage: screencap [-hp] [-d display-id] [FILENAME] -h: this messag.....
分类:移动开发   时间:2015-11-28 12:04:07    阅读次数:200
Android 调试工具集【转】
1.TraceView1)功能:用于热点分析和性能优化,分析每个函数占用的CPU时间,调用次数,函数调用关系等 2)方法: a)在程序代码中加入追踪开关 import android.os.Debug; …… android.os.Debug.startMethodTracing(“/dat...
分类:移动开发   时间:2015-11-28 12:06:03    阅读次数:189
Python 第五天
开放封闭原则开发:对于未存在的开放封闭:对于已存在的代码封闭装饰器1、装饰器就是一个函数,至少2层2、执行auth函数,被装饰的函数作为参数auth(foo)auth函数的返回值,赋值给被装饰的函数的函数名@authdef foo():pass3、动态参数,可以装饰含有n个参数的函数4、函数返回值5...
分类:编程语言   时间:2015-11-28 12:03:52    阅读次数:175
How To:使用dmidecode获取机器序列号(Serial number)
使用dmidecode可以获取关于机器的诸多信息,比如机器的序列号[root@dc1db01 ~]# dmidecode -s system-serial-numberprocessor的主频[root@dc1db01 ~]# dmidecode -s processor-frequency2200...
分类:其他好文   时间:2015-11-28 12:05:03    阅读次数:207
常用ADB命令
随着android系统的火热,现在android的测试也开始跟着火热起来,但是目前很多测试工程师仅仅停留在ui的测试上,也就是ui上有什么功能就测试什么功能,至于android如何工作的,我们在测试的过程中系统到底发生了那些变法,这些都不关心。测试出bug截个图就扔给开发了,所以这也是导致开发对我们...
分类:数据库   时间:2015-11-28 12:03:14    阅读次数:161
poj3261 Milk Patterns(后缀数组)
Milk PatternsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 12571Accepted: 5572Case Time Limit: 2000M...
分类:编程语言   时间:2015-11-28 12:03:31    阅读次数:220
判断用户ip是否在指定的一个ip段内
/** * 判断ip是否在一个ip段内 * * @param args */ public static boolean ipExistsInRange(String ip, String ipSection) { ipSection = ipSection.trim...
分类:其他好文   时间:2015-11-28 12:04:38    阅读次数:224
ECMAScript6的lambda(arrow function)的this绑定导致call/apply失效
错误场景:App = React.createClass({ render: () => { return ( ); }});按照上述写法,在用到App的地方会出现undefined的问题。而下面这种写法则没有问题:App = React.createClass({ ...
分类:移动开发   时间:2015-11-28 12:03:59    阅读次数:209
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2015-11-28 12:02:56    阅读次数:124
Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动开发   时间:2015-11-28 12:01:16    阅读次数:216
785条   上一页 1 ... 31 32 33 34 35 36 37 ... 47 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!