码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
service
Angular.js Servicesapp.service("foo", function() { var thisIsPrivate = "Private" this.variable = "This is public" this.getPrivate = function(...
分类:其他好文   时间:2015-11-02 15:37:26    阅读次数:134
js弹出框
1、alert(msg)2、confirm(msg)function disp_confirm() { var r=confirm("Press a button") if (r==true) { document.write("You pressed OK!") } el...
分类:Web程序   时间:2015-11-02 15:35:01    阅读次数:281
CSS 动画功能
【CSS3中的动画功能】/* 1.Transition功能,通过指定开始结束状态来过度,无法实现复杂动画。*//* transition:property duration timing-function */transition-property: background-color;transit...
分类:Web程序   时间:2015-11-02 15:13:46    阅读次数:409
jQuery插件开发详细教程
一、入门 编写一个jQuery插件开始于给jQuery.fn加入新的功能属性,此处添加的对象属性的名称就是你插件的名称: view source? 1 jQuery.fn.myPlugin = function() { 2 ? 3 ? //你自己的插件代码 4 ? 5 }; 用户...
分类:Web程序   时间:2015-11-02 14:06:53    阅读次数:193
自动加载
function AotuLoadFile($dirArray){ $rootPath=realpath("."); $headSign="file://"; foreach ($dirArray as $dir) { $utilityPath="$headSign$...
分类:其他好文   时间:2015-11-02 14:02:00    阅读次数:151
js--面向对象
面向对象用名词封装描述的方式,最主流的编程范式(js不强制使用面向对象)类/构造函数描述对象的代码,也是描述一个对象的模版相对于普通函数,构造函数内部可以使用this,且需要new初始化function A(){ this.a=1 }创建使用new进行创建var a=new A();使用new命.....
分类:Web程序   时间:2015-11-02 14:00:15    阅读次数:209
关于js的两个函数
注:这两个函数结合其他主要实现异步的默认checkbox选中和其他选中,关键点在于,从php页面穿过来已经选中的值;function assign(id,go_ids){ if(id > 0){ //var content = jQuery('#assign_'+id).html...
分类:Web程序   时间:2015-11-02 13:57:51    阅读次数:220
邮箱验证
无标题文档邮箱:// JavaScript Documentfunction getEl(id){ return document.getElementById(id);}function getEls(obj,tag){ return obj.getElementsByTagName(tag);}...
分类:其他好文   时间:2015-11-02 13:45:12    阅读次数:220
About “this” of Javascript
the 4 point about This: 1.the use of Object methods 2.the use of constructors 3.the use of ordinary function 4.the use of Function.prototype.call or F...
分类:编程语言   时间:2015-11-02 13:44:21    阅读次数:169
lua环境变量
function foo() print(g or "'g' is not defined!")endfoo()env = { g = 100, print = print }setfenv(foo, env) --设置foo的环境为表envfoo()print(g or "'g' is not d...
分类:其他好文   时间:2015-11-02 13:36:55    阅读次数:265
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!