码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
jquery中页面Ajax方法$.load的功能
load语法$(".selector").load("url", function(responseText, statusText, xmlhttprequest));可以做到加载一个页面的时候,如果发生错误,根据statusText给出的状态,显示对应的提示,这对用户来说非常重要。例子,load...
分类:Web程序   时间:2014-10-17 23:07:35    阅读次数:279
Add hatch to bar plot
1 function applyhatch(h,patterns,colorlist) 2 %APPLYHATCH Apply hatched patterns to a figure 3 % APPLYHATCH(H,PATTERNS) creates a new figure from...
分类:其他好文   时间:2014-10-17 21:54:57    阅读次数:270
js:数据结构笔记8--集合
集合:唯一性,无序性;基本结构: function Set () { this.dataStore = []; this.add = add; this.remove = remove; this.contains =contains; this.show = show; } ...
分类:Web程序   时间:2014-10-17 21:54:07    阅读次数:256
了解javascript中的apply和call
apply和call是javascript中很重要的方法,虽然平时编程很少接触到,但是JS框架中到处在使用这2个方法。 这2个方法是在Function.prototype中,也就是说每个JS函数都有这2个方法。 alert(Function.prototype.hasOwnProperty("apply"));//true alert(Object.prototype.hasOwnProper...
分类:移动开发   时间:2014-10-17 20:33:11    阅读次数:200
love 图片
function love.load() mm = love.graphics.newImage("mm.jpg") x = 0 y = 0endfunction love.draw() love.graphics.draw(mm, x, y)end
分类:其他好文   时间:2014-10-17 20:26:49    阅读次数:120
[LeetCode]Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.这个很简单,看代码便知// LongestCommonPrefix.cpp : 定义控制台应用程序的入口点。//#include...
分类:其他好文   时间:2014-10-17 20:17:37    阅读次数:202
JQuery学习笔记-JQuery的html()方法和val()方法
<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <metahttp-equiv="Content-Type"content="text/html;charset=UTF-8"> <title>UntitledDocument</title> <scripttype="te..
分类:Web程序   时间:2014-10-17 19:07:38    阅读次数:325
jQuery的ajax向PHP传数据并接受数据
例子1请求b网页,传送2个参数,忽略返回值:$.get("a/b",{name:"John",time:"2pm"});例子2显示b返回值(HTML或XML,取决于返回值):$.get("a/b",function(data){ alert("DataLoaded:"+data); });例子3显示b返回值(HTML或XML,取决于返回值),添加一组请求参数:$.get("a/b",{nam..
分类:Web程序   时间:2014-10-17 19:04:51    阅读次数:180
手机引导页
<html> <head> <scriptsrc="jquery-1.7.1.min.js"></script> <scripttype="text/javascript"> $(document).ready(function(){ vart1=setTimeout("$(‘#a‘).css(‘color‘,‘#0099FF‘);",2000) vart2=setTimeout("$(‘#b‘).css(‘color‘,‘#0099FF‘)",30..
分类:移动开发   时间:2014-10-17 18:59:36    阅读次数:171
javascript 搜索二叉树
Tree.prototype = { constructor: Tree, addItem: function(value) { var Node = { data: value, left: null, right: null }; if (this.root == null) { this.root = Node;...
分类:编程语言   时间:2014-10-17 18:51:23    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!