码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
Animations功能(区别于Transitions)
CSS3实现动画: 1 Transitions:定义元素的某个属性从一个属性值平滑过渡到另一个属性值。 Transitions属性的使用方法如下所示: transition: property | duration | timing-function | delay transition-prope ...
分类:其他好文   时间:2016-08-30 17:40:47    阅读次数:187
Jquery实现选项卡效果
<script type="text/javascript"> $(document).ready(function(){ $('.ct:gt(0)').hide(); gt() //匹配所有大于给定索引值的元素 var hdw = $('.box ul li'); //li集合 hdw.hover ...
分类:Web程序   时间:2016-08-30 17:38:10    阅读次数:160
对象的继承
fucntion Person(name,sex){ //父类 this.name=name; this.sex=sex; } Person.prototype.showName=function(){ alert(this.name); } function Star(){} //子类 现在有一个 ...
分类:其他好文   时间:2016-08-30 17:27:58    阅读次数:138
【codewar】
##题目描述 Function composition is a mathematical operation that mainly presents itself in lambda calculus and computability. It is explained well here, b ...
分类:其他好文   时间:2016-08-30 13:33:18    阅读次数:105
inputs
inputs.bind({ keyup:function(){$(this).val($(this).val().replace(/\D/g,''));}, focus:function(){if($(this).val() == this.defaultValue) $(this).val("") ...
分类:其他好文   时间:2016-08-30 12:14:14    阅读次数:124
刚体的调试(转))
b2DebugDraw提供调试功能,由于Box2D中所有对象都是不可见的,要创建可见对象我们得用刚体定义中的userData属性来创建自己的图形,如果不创建自己的图形,则用b2DebugDraw类来实现物体的可见,方便调试。 具体代码: private function showDebug():vo ...
分类:其他好文   时间:2016-08-30 10:39:05    阅读次数:197
3.Object.keys() 取得对象中所有可枚举的属性
Object.keys() 取得对象中所有可枚举的属性function Person(){}Person.prototype.name="summer";Person.prototype.age=20;Person.prototype.job="enginner";Person.prototype. ...
分类:其他好文   时间:2016-08-30 10:38:42    阅读次数:175
Js根据Ip地址自动判断是哪个城市
var province = '' ;var city = '' ;jQuery.getScript("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js",function(){ province = remote_ip_inf ...
分类:Web程序   时间:2016-08-30 09:34:04    阅读次数:217
压缩成zip文件并通过curl上传
class test{ //curl上传 function testPost(){ $url = "http://liling.gov.gsp365.cn/Api/Upload/postFile"; $file = 'D:\phpStudy\WWW\testcurl\json.zip'; $data ...
分类:Web程序   时间:2016-08-30 09:25:43    阅读次数:210
【codewar】Unary function chainer
## 题目描述: Your task is to write a higher order function for chaining together a list of unary functions. In other words, it should return a function th ...
分类:其他好文   时间:2016-08-30 01:43:34    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!