题目:Write a function to find the longest common prefix string amongst an array of strings.思路:以第一个字符串为基准,然后循环比较package string;public class LongestCommon...
分类:
其他好文 时间:
2015-12-15 14:04:40
阅读次数:
115
假设有这样的一段tr: 现在要求如下:默认情况下,所有的text都不可编辑,勾选了前面的checkbox之后同一行的text可编辑:可以在jquery的ready方法里面这样写 $(document).ready(function(){...
分类:
其他好文 时间:
2015-12-15 12:22:16
阅读次数:
100
1.[代码]使用方法 // 为datagrid开启统计功能$('#list').datagrid({..... // 此处代码略showFooter : true,onLoadSuccess : function() {$('#list').datagrid('statistics');}});/....
分类:
其他好文 时间:
2015-12-15 12:17:33
阅读次数:
265
读书笔记,简化代码--不对外公布,只是做笔记使用。var superman = { name: "Superman", strength: "Super", heroism: true};function isSuperStrong (character) { return ...
分类:
编程语言 时间:
2015-12-15 10:24:42
阅读次数:
173
var JPlaceHolder = { //检测 _check : function(){ return 'placeholder' in document.createElement('input'); }, //初始化 init : functi...
分类:
其他好文 时间:
2015-12-15 10:24:11
阅读次数:
685
$(document).ready(function(){ $("li.shop-list-menu-item").click(function(){ $("li.shop-list-menu-item").removeClass('active'); $(this)....
分类:
Web程序 时间:
2015-12-15 10:23:46
阅读次数:
182
js继承有5种实现方式:1、继承第一种方式:对象冒充 function Parent(username){ this.username = username; this.hello = function(){ alert(this.username); } } function Child(user...
分类:
Web程序 时间:
2015-12-15 09:00:14
阅读次数:
123
1、错误描述Compilation errors for FUNCTION SCOTT.ODD
Error: PLS-00201: 必须声明标识符 'EVEN'
Line: 4
Text: Result := not Even(Value);
Error: PL/SQL: Statement ignored
Line: 4
Text: Result := not Even(Value);2、错...
分类:
其他好文 时间:
2015-12-15 01:07:17
阅读次数:
239
其实和大小没啥太大关系,主要因素是元素个数,也就是说,1,2 和 3,4 可能构成的排列组合个数是一样的,大概的思路就是这样的:式子出来了,那代码也就出来了:int numTrees(int n) { vector treeNumList(n + 1); function getTree...
分类:
其他好文 时间:
2015-12-15 00:59:57
阅读次数:
248
Javascript的结构体应用,如下: function station(name, latitude, longitude){ this.name = name; this.latitude = latitude; this.longitude = longitude; } var s1 = n...
分类:
Web程序 时间:
2015-12-15 00:52:10
阅读次数:
219