JS方法: $(function(){ is_weixn(); }) function
is_weixn(){ var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMesse...
分类:
微信 时间:
2014-06-04 18:04:49
阅读次数:
413
作用域:在编程语言中,作用域控制着变量与参数的可见性及生命周期。JS确实有函数作用域,那意味着定义在函数中的参数和变量在函数外部是不可见的,而且在一个函数中的任何位置定义的变量在该函数中的任何地方都是可见的。var
a = 1;var fs = function (){ var b = 2; ...
分类:
Web程序 时间:
2014-06-04 17:18:36
阅读次数:
224
C++支持三种类型的member functions:
static、nonstatic和virtual,每一种类型调用方式都不相同。一 nostatic members functions1 调用方式
C++的设计原则之一就是:nonstatic member function知识和一般的non....
分类:
其他好文 时间:
2014-06-04 17:08:52
阅读次数:
328
js:方法一:window.onload=function(){内容}方法二(自己定义方法):function
onload(){内容}
onload();jQuery:方法一:$(document).ready(function(){内容});方法二:$(function(){内容});方法三:j...
分类:
Web程序 时间:
2014-06-04 17:04:51
阅读次数:
781
本系列为Python学习相关笔记整理所得,IT人,多学无害,多多探索,激发学习兴趣,开拓思维,不求高大上,只求懂点皮毛,作为知识储备,不至于落后太远。
分类:
编程语言 时间:
2014-06-04 16:21:47
阅读次数:
263
url = $url; $this->ch = curl_init();
$this->type = $type; } //设置发送方式 0 get 1 post public function setType( ...
分类:
Web程序 时间:
2014-06-04 16:16:05
阅读次数:
201
The right-hand sides of n-ary function and
predicate definition in canonical structure depend only on the
$\mathbf{a_i^{\circ}}$ and not on the $\math...
分类:
其他好文 时间:
2014-06-04 15:49:48
阅读次数:
179
在终端输入python,然后importsysprintsys.pathThe Python
Tutorial — Python v2.7.7
documentationhttps://docs.python.org/2.7/tutorial/index.htmlPython
3.1.2和2.7比较...
分类:
移动开发 时间:
2014-06-04 14:45:58
阅读次数:
357
表单提交的时候大多数用户都习惯用回车键来进行提交,页面接受回车键的处理如下:if(navigator.userAgent.indexOf("MSIE")>0)
{ //IE document.onkeydown=function(){ if(1...
分类:
Web程序 时间:
2014-06-03 16:37:27
阅读次数:
538
<?php
/**
* 生成永远唯一的激活码
* @return string
*/
function create_guid($namespace = null) {
static $guid = '';
$uid = uniqid ( "", true );
$data = $namespace;
$data .= $_SERVER ['REQUEST_TIME']; //...
分类:
Web程序 时间:
2014-06-02 18:55:35
阅读次数:
327