码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
Ember——翻页函数 很棒!
//翻页function getShowPages(page, total_num, size){ var lpage = page-size //当前页左边的按钮个数 , rpage = page + size //当前页右边的按钮个数 , start = lpage > 1 && ...
分类:其他好文   时间:2015-10-03 18:08:39    阅读次数:119
html5移动开发--js温馨提示
1.a标签执行js笔试2.实时监听input[javascript]view plaincopy$('#inputID').bind('inputpropertychange',function(){alert($('#inputID').val());}); ...
分类:移动开发   时间:2015-10-03 16:48:55    阅读次数:252
JSon 事件格式化
JS~json日期格式化起因对于从C#返回的日期字段,当进行JSON序列化后,在前台JS里显示的并不是真正的日期,需要格式化时间实现function ChangeDateFormat(jsondate) { jsondate = jsondate.replace("/Date(", "").r...
分类:Web程序   时间:2015-10-03 15:39:20    阅读次数:185
javascript 中的类数组和数组
什么是类数组呢? 我们先来看一段代码: function fn() { console.dir(arguments);}fn(1,2,3,4,5,6,7,8,9,10);这段代码的执行后,在 chrome 浏览器的控制台中,结果如下: 函数 fn 执行的时候,函数内的 argument...
分类:编程语言   时间:2015-10-03 14:25:26    阅读次数:121
AngularJS 指令ng-click
元素被点击时调用方法或者表达式: Increment count: {{count}} Decrement angular.module('myApp', []).controller('CounterController', function($scope)...
分类:Web程序   时间:2015-10-03 14:22:46    阅读次数:158
191. Number of 1 Bits Leetcode Python
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in...
分类:编程语言   时间:2015-10-03 14:20:38    阅读次数:149
ExtJS得知--------Ext.Element学习的查询方法(示例)
详细实例:(实验结果可复制代码后进行演示)Ext.onReady(function(){ Ext.create('Ext.panel.Panel',{//创建一个面板 title:'我的面板' , width:'100%' , height:400 , renderTo:Ext.getB...
分类:Web程序   时间:2015-10-03 14:18:14    阅读次数:210
80. Remove Duplicates from Sorted Array II (Array)
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array nums = [1,1,1,2,2,3],Your function shou....
分类:其他好文   时间:2015-10-03 11:50:30    阅读次数:121
jQuery 源码callbacks
callbacks工具方法,作用是函数回调的统一管理jQuery.Callbacks = function( options ) { }使用:类似于事件绑定,fire之后,之前绑定的方法,都执行。观察者模式。 function aaa() { alert(1); } f...
分类:Web程序   时间:2015-10-03 06:05:47    阅读次数:235
Xilinx Spartan6常用资源Verilog例化
1 // DSP48A1 : In order to incorporate this function into the design, 2 // Verilog : the following instance declaration needs to be placed ...
分类:其他好文   时间:2015-10-02 21:13:32    阅读次数:630
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!