码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
分类组件
$(function () { $("#box").accordion({ width: 450, height: 200, // fit: true, //自适应全屏 // border:true, //外边框设置 // animate: true, //是否显示动画效果 // multiple: ...
分类:其他好文   时间:2016-08-17 22:51:24    阅读次数:117
[LeetCode] NO. 242 Valid Anagram
[题目] Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat" ...
分类:其他好文   时间:2016-08-17 22:41:08    阅读次数:156
JavaScrip入门(3)
函数: var m2=function(){ console.log('2222'); } console.log(typeof(m2)); 输出结果:test.html:31 function jsp中的函数没有重载, 后者覆盖前者。 function m2(){ console.log('222 ...
分类:编程语言   时间:2016-08-17 21:27:51    阅读次数:180
js继承
一.prototype(原型) 1. function Person (name) { this.name = name; } function Star (name) { } Star.prototype = new Person("鹿晗"); var who = new Star(); cons ...
分类:Web程序   时间:2016-08-17 21:24:34    阅读次数:162
损失函数(Loss Function) -1
http://www.ics.uci.edu/~dramanan/teaching/ics273a_winter08/lectures/lecture14.pdf Loss Function 损失函数可以看做 误差部分(loss term) + 正则化部分(regularization term) ...
分类:其他好文   时间:2016-08-17 21:06:22    阅读次数:302
javascript -- (倒计时)
<h2 id = "show"></h2> <script type = "text/javascript"> var show = document.getElementById('show'); function start() { //给定时间 var Gdate = new Date('20 ...
分类:编程语言   时间:2016-08-17 21:02:56    阅读次数:116
初识面向对象的概念
先贴代码: 1 /** 2 * Created by Administrator on 2016/8/17. 3 */ 4 (function () { 5 6 function createStudent(name,age,gender) { 7 var student={name:name,ag ...
分类:其他好文   时间:2016-08-17 21:00:05    阅读次数:201
关于setTimeout()
碰到个更新权限的问题,后台要求更新权限后,加个1.5s的时间差,再执行下一个函数。 带参数的方法: function A(x,y) 1、setTimeout("A('"+arg1+"',"+"'"+arg2+"',"+....+"')",3000); //不推荐这种方法,麻烦,还容易弄错 2、set ...
分类:其他好文   时间:2016-08-17 19:47:18    阅读次数:154
jquery input change事件
input输入框的change事件,要在input失去焦点的时候才会触发 在输入框内容变化的时候不会触发change,当鼠标在其他地方点一下才会触发 用下面的方法会生效,input [html] view plain copy $("#input_id").on('input',function(e ...
分类:Web程序   时间:2016-08-17 19:45:23    阅读次数:973
解决 iOS 9.1 微信内置浏览器中html audio 不能自动播放的问题
使用微信现在提供过的微信js-sdk 在ready中进行播放便可。 首先引用js : <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> 然后写方法 : function autoPlayAudio1() { w ...
分类:微信   时间:2016-08-17 18:09:24    阅读次数:741
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!