javascript解释器中存在一种变量声明被提升(hoisting)的机制,即变量(函数)的声明会被提升到作用域的最前面。即使把声明代码写在最后面。
alert(foo); //function foo(){} alert(bar); //undefined var bar = func...
分类:
编程语言 时间:
2014-05-12 00:42:19
阅读次数:
369
/* Endian swapping module.Simple example with
Avalon streaming interfaces and a CSR busAvalon-ST has readyLatency of
0Avalon-MM has fixed readLatency ...
分类:
其他好文 时间:
2014-05-11 23:21:17
阅读次数:
423
Option Explicit
Function stripHTML(strtext)
dim arysplit,i,j, strOutput
arysplit=split(strtext,"
if len(arysplit(0))>0 then j=1 else j=0
for i=j to ubound(arysplit)
if instr(arysplit(i),">") ...
分类:
其他好文 时间:
2014-05-11 21:56:06
阅读次数:
355
右键弹出自定义菜单,很有意思呀!
右键菜单
function showmenuie5(){
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY
if (rightedge
ie5menu.style.left=d...
分类:
其他好文 时间:
2014-05-11 20:20:35
阅读次数:
240
1.到项目文件的proj.android目录下,编辑build_native.sh文件,指定NDK和cocos2dx路径
export NDK_ROOT=/home/liyuchen/dev/android-ndk-r9d
export NDK_MODULE_PATH=/home/liyuchen/dev/cocos2d-x-2.2.1/cocos2dx
2.执行脚本
./b...
分类:
移动开发 时间:
2014-05-11 20:09:19
阅读次数:
399
$(document).ready(function () { var
tag=$(".tags"); tag.mouseover(function(){
$(this).addClass("tagOn").siblings().removeClass("tagOn"); var index ...
分类:
Web程序 时间:
2014-05-11 18:22:45
阅读次数:
415
function getElementsByClassName(str,root,tag){
if(root){ root = typeof root == "string" ? document.getElementById(root) : root;
} els...
分类:
编程语言 时间:
2014-05-11 18:20:00
阅读次数:
316
C++语言的对象化模型.封装,隐藏内部实现.继承,复用现有代码.多态,改写对象行为本文描述了一个C++实现的继承和多态的场景,然后用C语言编写了一种对等的实现。//
A typical example of inheritance and virtual function use.// We wou...
分类:
编程语言 时间:
2014-05-11 18:03:47
阅读次数:
412
一、DB2 RACF control
module定义在prefix.SDSNSAMP(DSNXRXAC)中,查找一下数据集符合*.SDSNSAMP数据集有两个,我这里使用的DB
V9,自然prefix就是DSN910了二、进入DSN910.SDSNSAMP,查看DSNXRXAC成员。可以知道几个非...
分类:
数据库 时间:
2014-05-11 16:54:30
阅读次数:
430
模块模块式Python组织代码的基本方式脚本:Python的脚本都是用扩展名py的文本文件保存的,一个脚本可以单独运行,也可以导入到另一个脚本中运行。模块:当脚本被导入运行时,成为模块(module)
模块名与脚本的文件名相同 导入test.py脚本:import test区分直...
分类:
编程语言 时间:
2014-05-11 15:35:15
阅读次数:
351