码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
分页插件
/* 分页插件 $(".ms-page").createPage( { pageCount : 10, current : 1, backFn : function( pNum){ innerHtmlFun( pNum ); } } );*/;(function($){ var ms = { in....
分类:其他好文   时间:2015-07-06 14:08:20    阅读次数:105
小额绑卡
$(function(){ //版本控制 var revisionControl = false, //遮罩 shadow = $('#shadow_win'), //是否支持地区 isArea = '', //银行卡号INPUT bankNumberInput = $('#bank_number'...
分类:其他好文   时间:2015-07-06 14:01:14    阅读次数:131
LeetCode——Power of Two
Description:Given an integer, write a function to determine if it is a power of two.public class Solution { public boolean isPowerOfTwo(int n) { ...
分类:其他好文   时间:2015-07-06 13:58:57    阅读次数:84
[LeetCode][JavaScript]Power of Two
Power of TwoGiven an integer, write a function to determine if it is a power of two.https://leetcode.com/problems/power-of-two/二分。2的整数次幂,要么开方后是整数(这个数也...
分类:编程语言   时间:2015-07-06 13:57:39    阅读次数:238
js公共方法
/* MS 民生电商公共方法*/window.MS = window.MS || {};//判断平台类型和特性的属性;(function(){ var userAgent = navigator.userAgent || ''; MS.platform = MS.platform || {}; //...
分类:Web程序   时间:2015-07-06 13:53:03    阅读次数:120
【LeetCode 231】Power of Two
Given an integer, write a function to determine if it is a power of two.思路: 如果一个数是2的Power,那么该数的二进制串中只有一位为1,其余都为0。执行一次n & (n - 1)可消除最低位的一个1,若消除后为0,则说明....
分类:其他好文   时间:2015-07-06 13:52:10    阅读次数:71
js添加收藏夹
function addfavorite() { var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd': 'CTRL'; try{ if (document.al...
分类:Web程序   时间:2015-07-06 13:46:40    阅读次数:183
Jquery入门
1、基本文件:jquery.min.js 2、简单的基础方法: $(document).ready(function(){ alert(‘ready?function!‘); });//页面加载时执行 $(function(){ alert(‘function!‘); });//页面加载完毕时执行 <script?src...
分类:Web程序   时间:2015-07-06 12:39:34    阅读次数:118
JS禁止后退键
//处理键盘事件?禁止后退键(Backspace)密码或单行、多行文本框除外?? function?banBackSpace(e){????? ????var?ev?=?e?||?window.event;//获取event对象????? ????var?obj?=?ev....
分类:Web程序   时间:2015-07-06 12:37:37    阅读次数:136
[Leetcode]-Same Tree
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.Hide Tags :Tree ,De...
分类:其他好文   时间:2015-07-06 12:25:10    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!