1 定义和使用场合 回调函数是指 使用者自己定义一个函数,实现这个函数的程序内容,然后把这个函数(入口地址)作为参数传入别人(或系统)的函数中,由别人(或系统)的函数在运行时来调用的函数。函数是你实现的,但由别人(或系统)的函数在运行时通过参数传递的方式调用,这就是所谓的回调函数。简单来说,就是由别 ...
分类:
编程语言 时间:
2016-07-03 18:56:16
阅读次数:
294
要写kernel当然要知道如何用一些常用的工具检查编译出来的object file, 如何手动链接等知识啦: making a plain binary file using a C compiler(i386+).pdf 从这里,我终于搞清楚了C中的varadic function paramet ...
分类:
其他好文 时间:
2016-07-03 17:31:22
阅读次数:
182
prototype:prototype 函数才有prototype 是对象类型 typeof Person.prototype --> 'object' Function创建一个Person类 function Person(){ this.age = 22; this.name = 'tony'; ...
分类:
其他好文 时间:
2016-07-03 17:25:16
阅读次数:
108
$(function(){ $("#box").tooltip({ content: '<div style="width:200px;height:100px;border:1px solid black"><strong>内容提示<strong></div>', //显示的的范围大小 //pos ...
分类:
其他好文 时间:
2016-07-03 17:17:09
阅读次数:
171
$(function(){ $("#box1").resizable({ // disable: true, // handles: 'e,s', //n:上 e:右 s:下 w:左 ne,se,sw,nw all 控制可拖动位置 //minWidth:200,// 最小宽度, minHeight ...
分类:
其他好文 时间:
2016-07-03 17:08:46
阅读次数:
166
JavaScript正则验证检查输入对象的值是否符合整数格式 输入量是str 输入的字符串 如果输入量字符串str通过验证返回true,否则返回false function isInteger( str ){http://www.hrbfkyy120.com var regu = /^[-]{0,1 ...
分类:
编程语言 时间:
2016-07-03 15:47:29
阅读次数:
166
$(function(){ $("#box").draggable({ //revert:true, //拖动后放开返回原来位置 // cursor:Text, //设置拖动鼠标样式 // handle:'#pox', //指定鼠标在某个控件上可以拖动 //disable:true, //不可拖动 ...
分类:
其他好文 时间:
2016-07-03 15:40:49
阅读次数:
116
animation:<animation-name> || <animation-duration> || <animation-timing-function> || <animation-delay> || <animation-iteration-count> || <animation-di ...
分类:
其他好文 时间:
2016-07-03 13:04:33
阅读次数:
129
Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element ...
分类:
其他好文 时间:
2016-07-03 11:54:18
阅读次数:
187
页面显示如下:
JQueryAjax.html中的代码如下(用的较为简单的$.post)
JQueryAjax+PHP
用户名:
密码:
ajax提交
$(document).ready(function(){
$(".butn").click(function(){
var username = $("#...
分类:
Web程序 时间:
2016-07-03 11:54:08
阅读次数:
153