模块化JavaScript之风早已席卷而来,CommonJS、AMD、NodeJS、RequireJS、SeaJS、curljs等模块化的JavaScript概念及库扑面而来,不得不承认,对于前端JavaScript代码的组织编写是一次伟大的变革。本文主要参考snandy的有关modular js系...
分类:
编程语言 时间:
2014-09-10 00:22:39
阅读次数:
318
http://nodejs.org/api/buffer.htmlPure JavaScript is Unicode friendly but not nice to binary data. When dealing with TCP streams or the file system, it...
分类:
Web程序 时间:
2014-09-09 23:02:59
阅读次数:
491
开发环境:Mac OSX 10.9.3Cocos2d-x-3.2首先,打开终端cd到目录/cocos2d-x-3.2/tools/cocos2d-console/bin下,运行cocos.py脚本创建文件。./cocos.py new HelloWorldDemo -p com.coco2dx.or...
分类:
其他好文 时间:
2014-09-09 21:24:29
阅读次数:
229
最近开始进行Android的开发,没有基础完全从0开始。 首先,知道Android开发的官方网站: http://developer.android.com/index.html 网站本身教程非常优秀,建议从0开始的朋友先看这篇文章: http://developer.android.com/tra...
分类:
移动开发 时间:
2014-09-09 17:47:59
阅读次数:
232
#include "HelloWorldScene.h"
#include "json/document.h"
#include "json/writer.h"
#include "json/stringbuffer.h"
#include
using namespace rapidjson;
USING_NS_CC;
Scene* HelloWorld::createScene()
{
...
分类:
Web程序 时间:
2014-09-09 16:16:08
阅读次数:
158
这里使用客户端用的是C++的简单封装,参考http://blog.csdn.net/langresser_king/article/details/8646088这篇文章。
服务器端用的JAVA编写。
使用方法:
HelloWorldScene.h
#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__
#inclu...
分类:
Web程序 时间:
2014-09-09 16:13:48
阅读次数:
174
第一步:定义所需的字符string.xml<?xmlversion="1.0"encoding="utf-8"?><resources><stringname="app_name">Calculator</string><stringname="action_settings">Settings</string><stringname="hello_world">Helloworld!</strin..
分类:
移动开发 时间:
2014-09-09 13:47:29
阅读次数:
406
用nodejs+ejs__html做的html界面运行起来之后显示的是乱码,更改浏览器编码格式为中文后显示正常。网上搜索nodejs相关信息需要在html页面中加入:。加入后仍是乱码,后发现nodepad++格式选项中有文件编码格式如图:将其选为红色框中的格式后显示正常。
分类:
Web程序 时间:
2014-09-09 12:12:38
阅读次数:
426
关于Redis,下面来自百度百科:redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hashs(哈希类型)。这些数据类型都支持push...
分类:
Web程序 时间:
2014-09-09 12:02:58
阅读次数:
294
前提:配置好简单的nodejs和bootstrap的服务,让用户可以通过localhost:8001和localhost:8001/index.html都可以访问火狐:两个入口都可以访问,样式也正常加载了。ie:localhost:8001/index.html可以正常访问,localhost:80...
分类:
Web程序 时间:
2014-09-09 12:02:18
阅读次数:
174