1.js文件封装的几个js工具
//兼容ie
if (typeof JSON == 'undefined') {
$("head").append($(""));
}
/**
* 工具对象,包括所有的公共方法。
*/
var giftShopTool = {
dialogId : "giftDialog",
jsloadArray : [],
// 关闭同意弹窗
closeHDdi...
分类:
Web程序 时间:
2014-06-03 03:52:07
阅读次数:
382
cocos2dx 3.0 CocoStudio1.4.1
做界面的时候用到了CocoStudio生成的UI.json文件,需要做语言本地化,论坛中有朋友给出了方法:
将本地化的图片设定格式,英文的叫button_store_normal.en.png 中文的叫button_store_normal.zh.png ......
按照这种规则,根据需要的语言来加载不同的图片
我...
分类:
Web程序 时间:
2014-06-03 03:28:59
阅读次数:
281
MeleeWeaponTrail是Unity Asset Store中的一个免费插件。主要是用于显示武器的轨迹。...
分类:
其他好文 时间:
2014-06-02 23:48:49
阅读次数:
363
cocos2dx 2.2.3 xcode5.0,新建mac项目报错
Undefined symbols for architecture x86_64:
"cocos2d::extension::LabelReader::createInstance()", referenced from:
cocos2d::extension::GUIRead...
分类:
其他好文 时间:
2014-06-02 23:07:31
阅读次数:
307
3.1源码结构:
(function( window, undefined ) {
var jQuery = (function() {
// 构建jQuery对象
var jQuery = function( selector, context ) {
return new jQuery.fn.init( selector, c...
分类:
Web程序 时间:
2014-06-02 04:54:11
阅读次数:
292
1 (function (window, undefined) { 2 //构建jQuery对象 3
var document = window.document, 4 navigator = window.navig...
分类:
Web程序 时间:
2014-06-02 01:15:54
阅读次数:
264
【题目】
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\ / / / \ 3 2 1 ...
分类:
其他好文 时间:
2014-06-01 15:34:24
阅读次数:
231
【题目】
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 3 3 2 1
\ / / / \ ...
分类:
其他好文 时间:
2014-06-01 15:33:45
阅读次数:
297
类型、值和变量
数据类型分类:
原始类型(primitive type):数字 字符串 布尔值 null undefined
对象类型(object type): 对象是属性的集合,每个属性都由“名/值”对构成。
javascript解释器有自己的内存管理机制,可以自动对内存进行垃圾回收。
3.1数字
javascript不区分浮点和整型,所有的数字都是按照浮点型处理。
3....
分类:
编程语言 时间:
2014-06-01 13:11:04
阅读次数:
362
1、高级函数 1.1 安全的类型检测 typeof 操作符,对一个值使用可能返回下列某个字符串
undefined, boolean, string, number, object, function null 也返回 ob...
分类:
Web程序 时间:
2014-05-31 19:19:18
阅读次数:
361