//引用easyui 文件的基本格式jQuery Easy UI //提示插件//对话框dialogjQuery Easy UI对话框哈哈哈$.parser.auto =false; // 关闭渲染组件的功能 false的话就不会加载对应的样式 要放在$(function(){}) 外面$(fun....
分类:
其他好文 时间:
2015-02-10 00:27:14
阅读次数:
174
$(function(){ var _srcList = [], i = 0; //获取所有图片路径,存为数组 $('.bg').each(function(){ _srcList.push($(this).attr('src')); }) fun...
分类:
其他好文 时间:
2015-02-09 18:14:08
阅读次数:
233
先看下面一段代码: 1 var a = 0; 2 alert("1st alert : a = " + a); 3 function fun(){ 4 alert("2nd alert : a = " + a); 5 var a = 1; 6 setTimeout(funct...
分类:
Web程序 时间:
2015-02-07 18:43:28
阅读次数:
179
键值对
题目:考虑包含键-值元组的列表,如[{erlang, “a functinal language”}, {ruby, “an OO language”}]。写一个函数,接受列表和键为参数,返回该键对应的值。
get_value(Map, Key) ->
element(2, hd(lists:dropwhile(fun({K, _})-> Key /= K end, Map) +...
分类:
编程语言 时间:
2015-02-06 20:31:23
阅读次数:
228
头文件
#pragma once
#include
using namespace std;
typedef int(FUNCPTRPA)(int rIndex);
typedef struct
{
int a;
int b;
}TEST1;
typedef struct
{
FUNCPTRPA*fun_send;
FUNCPTRPA*fun_reve;
int yx;...
分类:
编程语言 时间:
2015-02-06 15:02:16
阅读次数:
137
interface Test { //测试的接口 void fun();}Stub 是一个Binderclass Stub extend Binder implements Test { public boolean onTransact(); //在onTransact里面调用fun()}...
分类:
其他好文 时间:
2015-02-05 23:15:37
阅读次数:
186
最近项目上有个要求,要把连续的卡号使用一个段来描述,比如:1,2,3,4,5,8,10,13,14,15,16 要显示成:1-5,8,10,13-16的形式
但是原有的wm_contact函数是用逗号隔开,并没有该功能,我在网上搜集了点资料,自己再修改了点东西,满足了这个需求,下面看代码:
此代码是重写 wm_contact 函数的主要代码,脚本中 FUN_JOIN_STR(CURR_STR,...
分类:
数据库 时间:
2015-02-05 18:30:38
阅读次数:
442
<script?type="text/javascript">
<!--?one-way?linkedlist?reverse?in?javascript?-->
function?Node(value)?{
this.value?=?value;
this.next?=?null;
}
Node.prototype.setNext?=?fun...
分类:
编程语言 时间:
2015-02-04 21:58:39
阅读次数:
288
1.1What is Swift
“Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Sw...
分类:
移动开发 时间:
2015-02-04 13:04:04
阅读次数:
221
在网上看到java居然支持中文变量名、方法。这里我只试了变量名和方法,类名这些没有试...。真是给力 1 package com.gxf.fun; 2 3 4 public class TestForChinese { 5 private String 字符串 = "字符串"; 6 ...
分类:
编程语言 时间:
2015-02-02 21:12:33
阅读次数:
168