码迷,mamicode.com
首页 >  
搜索关键字:function annotations    ( 55235个结果
解析theme()
drupal_render()只是对theme()的调用做了包装,真正做任务的还是theme()。function theme($hook, $variables = array()) { ... ...}theme()的开头检查了module_load_all()是否有执行。theme()只能在....
分类:其他好文   时间:2014-05-01 02:20:32    阅读次数:493
关于IE下AJAX的问题探讨
今天JS练手的时候,想封装一个发送AJAX请求的对象,当然,是想要兼容全浏览器的。代码如下:var Ajax = { xhr: null, callback: null, XMLHttp: function() { var xmlhttp; //标准浏览器 if(window.XMLHttpRequ...
分类:其他好文   时间:2014-05-01 01:58:00    阅读次数:288
jQuery中.bind() .live() .delegate() .on()的区别
bind(type,[data],fn) 为每个匹配元素的特定事件绑定事件处理函数$("a").bind("click",function(){alert("ok");});live(type,[data],fn) 给所有匹配的元素附加一个事件处理函数,即使这个元素是以后再添加进来的$("a").l...
分类:Web程序   时间:2014-05-01 01:29:08    阅读次数:441
动态加载、移除、替换JS和CSS
//动态加载一个js/css文件 function loadjscssfile(filename, filetype) { if (filetype == "js") { var fileref = document.createEl...
分类:Web程序   时间:2014-05-01 00:51:10    阅读次数:451
jquery判断自己是父节点的第几个子节点
内容 内容 内容内容$("span").click(function(){ alert($(this).index()+1);});
分类:Web程序   时间:2014-05-01 00:10:00    阅读次数:463
View从Action中获得数据和html helper function(转载)
@model MvcApplication1.Models.M_Person@using MvcApplication1.Models;@{ ViewBag.Title = "GetData"; var p = ViewData["data"] as M_Person; var p...
分类:Web程序   时间:2014-05-01 00:00:48    阅读次数:486
学习笔记
今天继续研究js,发现一个代码载入后立即执行函数的写法。(function asd(){ cc.log(3); //输出3})(); 下面是一个待商榷的问题var myTest = function(){};myTest.prototype = { theOne:function(){...
分类:其他好文   时间:2014-04-30 23:47:23    阅读次数:419
基础算法之排序--快速排序
/************************************************************************************** * Function : 快速排序 * Create Date :...
分类:其他好文   时间:2014-04-30 23:09:34    阅读次数:458
java Annotation 自定义实例
Defining annotations Here is the definition of the annotation above. You can see that annotation definitions look a lot like interface definitions.  In fact, they compile to class files like any oth...
分类:编程语言   时间:2014-04-27 21:47:05    阅读次数:348
java Annotation Meta-annotations
Meta-annotations @Target CONSTRUCTOR: Constructor declarationFIELD: Field declaration (includes enum constants) LOCAL_VARIABLE: Local variable declaration METHOD: Method declarationPACKAGE: Pack...
分类:编程语言   时间:2014-04-27 21:12:04    阅读次数:385
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!