码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
记录:前端用户登陆验证
登陆页面login.php 登陆 用户名: 密码: "; if (isset($_POST[‘sub‘])) { $user = $_POST[‘user‘]; $passwd = md5($_POST[‘passwd‘]); checkLogin($user,$passwd); } ?> 验证函数:login // 判断用户登陆 function...
分类:其他好文   时间:2014-10-02 14:52:53    阅读次数:180
Modifiers
Sometimes it is useful for a function to modify the objects it gets as parameters. In that case, the changes are visible to the caller. increment, whi...
分类:其他好文   时间:2014-10-02 14:14:33    阅读次数:232
ThinkPHP生成静态页buildHtml方法
原来ThinkPHP自带了生成静态页的函数buildHtml,使用起来很方便!最新的手册里没写这个方法,向大家介绍一下。 ???? ????protected?function?buildHtml($htmlfile=‘‘,$htmlpath=‘‘,$templateFile=‘‘)?...
分类:Web程序   时间:2014-10-02 13:32:53    阅读次数:223
学习jquery需要了解的知识
jQuery中为我们提供了很多有用的方法和属性,自己总结的一些常用的函数,方法。个人认为在开发中会比较常用的,仅供大家学习和参考。jQuery事件处理ready(fn)代码:$(document).ready(function(){// Your code here...});作用:它可以极大地提高...
分类:Web程序   时间:2014-10-02 12:45:22    阅读次数:289
Pure functions
In the next few sections, we’ll write two versions of a function called add_time, which calculates the sum of two Time objects. They demonstrate two k...
分类:其他好文   时间:2014-10-02 11:48:22    阅读次数:116
64位只有一种调用约定stdcall
procedure TForm2.Button1Click(Sender: TObject); function EnumWindowsProc(Ahwnd: hwnd; AlParam: lParam): Boolean; stdcall; begin ShowMessage('hwnd...
分类:其他好文   时间:2014-10-02 07:57:52    阅读次数:418
jquery 回车代替tab
$(function () { ? ? ? ? //回车代替tab ? ? ? ? $(‘input:text:first‘).focus(); ? ? ? ? //如果有其他输入类型可以在此处加入 ? ? ? ? var $target = $(‘input,button,select‘); ? ? ? ? ...
分类:Web程序   时间:2014-10-01 23:59:22    阅读次数:339
mongoDB中批量修改字段
// 为每一个文章文档新增一个image_count字段,用于记录此文章包含的图片个数db['test.articles'].find({'title':'wfc test'}).forEach( function(thisArticle){ // 这里要强制转为整形,否则会变成浮点数 ...
分类:数据库   时间:2014-10-01 22:37:31    阅读次数:375
apache/php 开启 gzip压缩
1、php方式开启原理:header("Content-Encoding: gzip");echo gzencode('songjiankang');示例1:function ob_gzip ($content) // $content 就是要压缩的页面内容,或者说饼干原料{ if (! he...
分类:Web程序   时间:2014-10-01 20:03:21    阅读次数:135
动态提交使用jQuery 完成ajax 文件下载
查了好多资料,发现还是不全,干脆自己整理吧,至少保证在我的做法正确的,以免误导读者,也是给自己做个记录吧! //?Ajax?文件下载jQuery.download?=?function(url,?data,?method){????//?获得url和d...
分类:Web程序   时间:2014-10-01 16:02:41    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!