/* 分页插件 $(".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
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
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
/* MS 民生电商公共方法*/window.MS = window.MS || {};//判断平台类型和特性的属性;(function(){ var userAgent = navigator.userAgent || ''; MS.platform = MS.platform || {}; //...
分类:
Web程序 时间:
2015-07-06 13:53:03
阅读次数:
120
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
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
1、基本文件:jquery.min.js 2、简单的基础方法: $(document).ready(function(){
alert(‘ready?function!‘);
});//页面加载时执行 $(function(){
alert(‘function!‘);
});//页面加载完毕时执行 <script?src...
分类:
Web程序 时间:
2015-07-06 12:39:34
阅读次数:
118
//处理键盘事件?禁止后退键(Backspace)密码或单行、多行文本框除外??
function?banBackSpace(e){?????
????var?ev?=?e?||?window.event;//获取event对象?????
????var?obj?=?ev....
分类:
Web程序 时间:
2015-07-06 12:37:37
阅读次数:
136
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