- 浏览: 89153 次
- 性别:
- 来自: 宜昌
最新评论
-
chenaha:
不知道大哥是否会用sencha touch,我想写一个这样的效 ...
用ext读取XML写一个“省-市-邮编”三级联动
文章列表
算法--斐波那契数列
- 博客分类:
- 数据结构
public static long Fbi(int n)
{
if(n < 2)
{
return n;
}
else
{
long a = 0;
long b = 1;
long c = 0;
for(int i = 2; i <= n; i++)
{
c = a + b;
...
public static int getKey(int[] arr, int low, int high)
{
int key = low;
while(low < high)
{
while(low < high && arr[high] > arr[key])
{
high--;
}
int t = arr[high];
a ...
public static int[] merge(int[] A, int[] B)
{
int[] C = new int[A.length + B.length];
int p1 = 0;
int p2 = 0;
int p3 = 0;
while(p1 < A.length && p2 < B.length)
{
if(A[p1] <= B[p2])
{
...
int[] arr = new int[] { 5, 3, 4, 6, 2, 8, 9, 1, 7 };
for(int i = 0; i < arr.length; i++)
{
for(int k = 0; k < arr.length - i - 1; k++)
{
if(arr[k + 1] < arr[k])
{
int t = arr[k + 1];
...
int[] arr = new int[] { 5, 3, 4, 6, 2, 8, 9, 1, 7 };
for(int i = 0; i < arr.length; i++)
{
for(int k = i + 1; k < arr.length; k++)
{
if(arr[k] < arr[i])
{
int t = arr[k];
...
int[] arr = new int[] { 5, 3, 4, 6, 2, 8, 9, 1, 7 };
for(int i = 1; i < arr.length; i++)
{
int t = arr[i];
if(arr[i - 1] > t)
{
int k = i - 1;
for(; k >= 0 && arr[k] > t; k--)
...
java 备份mysql
- 博客分类:
- 开发宝典
import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStream;import java.io.OutputStreamWriter;
public class Test { public static ...
$.fn.grid = function(p) {
var grid = this;
var g = {
reload: function() {
grid.attr('page', 1);
po.loadData();
},
getSelected: function() {
var ret = [];
var rows = [];
if (g.sm == 'single') {
...
$(function ()
{
$("#layout1").ligerLayout({ leftWidth: 200, allowBottomResize: false, allowLeftResize: false });
});
ligerui.css
- 博客分类:
- 开发宝典
/*
YUI CSS Reset
*/
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,v ...
/**
* jQuery ligerUI 1.0.2
*
* Author leoxie [ gd_star@163.com ]
*
*/
eval(function(E,I,A,D,J,K,L,H){function C(A){return A<62?String.fromCharCode(A+=A<26?65:A<52?71:-4):A<63?'_':A<64?'$':C(A>>6)+C(A&63)}while(A>0)K[C(D--)]=I[--A];function N(A){return K[A]==L[A]?A ...
/**
* jQuery ligerUI 1.0.2
*
* Author leoxie [ gd_star@163.com ]
*
*/
if (typeof (LigerUIManagers) == "undefined") LigerUIManagers = {};
(function($)
{
/// <param name="$" type="jQuery"></param>
$.fn.ligerGetAccordionManager = function ...