码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
javascript通过时区获取时间
1 /* 2 描述:时区的换算 3 参数:offset时区位置 4 使用:东八区calcTime(”+8"); 5 */ 6 function calcTime(offset) { 7 // 创建一个本地日期 8 var d = new Date(); ...
分类:编程语言   时间:2015-10-06 09:13:35    阅读次数:247
Leetcode Strobogrammatic Number
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).Write a function to determine if a number is...
分类:其他好文   时间:2015-10-06 08:06:32    阅读次数:149
MySQL 转换函数与运算符
Table 12.14 转换函数(Cast Function) BINARY 将 string 转换为二进制 stringCAST() 将某个值转换为特定类型CONVERT()将某个值转换为特定类型BINARY BINARY 运算符将紧随其后的 string 转换为 二进制字符串。主要用来强制进行按字节进行比较(byte by byte),字节而不是字符的字符。这使得字符串比较是区分大小写...
分类:数据库   时间:2015-10-06 00:46:16    阅读次数:336
原创:Javascript循环队列类
需要滚动显示最多一定数量的信息,于弄了个这个var LeesCircleQueue=function(size){ // 队列数组 var _queue=[]; // 队首索引 var _front=0; // 队尾索引 var _rear=...
分类:编程语言   时间:2015-10-06 00:44:33    阅读次数:222
model中的自动验证 $_validate $_auto
普通模式: 1 动态绑定模式: 1 display(); 6 } 7 8 public function index(){ 9 $user = D('User');10 $validate = array( 11...
分类:其他好文   时间:2015-10-05 23:22:28    阅读次数:184
微信卡劵开发
通过微信js-sdk提供的卡卷领取接口,用户可以获取卡卷:wx.addCard({ cardList: [{ cardId: '', cardExt: '' }], // 需要添加的卡券列表 success: function (res) { ...
分类:微信   时间:2015-10-05 23:12:29    阅读次数:624
javascript 面向对象编程指南 的一些题目
1、function C () { this.a = 1; return false; }console.log (typeof new C());objectfunction C () { this.a = 1; return "bbb" }console.lo...
分类:编程语言   时间:2015-10-05 22:05:05    阅读次数:186
jsp跳转后台代码页的简易方式~
jsp跳转到代码隐藏页。有几种方法,例如,: action方式; jquery方式,码如下面:function regCust(){ $('#containerFRM').form( 'submit', { "url" : "${webAppUrl}/cust/register...
分类:Web程序   时间:2015-10-05 21:56:53    阅读次数:195
yield学习
如果要控制内存占用,最好不要用list来保存中间结果,而是通过iterable对象(range, xrange, generator等)来迭代。yield 使函数变为generator,返回对象为iterator(可通过for循环遍历)在一个generator function中,默认会执行到函数完...
分类:其他好文   时间:2015-10-05 20:48:43    阅读次数:195
LeetCode OJ:Two Sum(两数之和)
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-10-05 18:12:58    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!