groot.view("myview", function (vm, ve) { ve.loada = function () { require("./app/pagea.js").loadpage($("#app"), "myapp") }...
分类:
移动开发 时间:
2014-06-15 22:08:15
阅读次数:
197
1 Ext.require('Ext.TabPanel'); 2 Ext.application({ 3 name: 'MyApp', 4 icon: 'images/icon.png', 5 glossOnIcon: false, 6 tabletStartupS...
分类:
其他好文 时间:
2014-06-15 21:38:19
阅读次数:
213
基于cocos2d-x的Entity-Component-System游戏架构方法,避免传统面向对象开发模式中的各种问题!!!...
分类:
其他好文 时间:
2014-06-15 09:01:45
阅读次数:
174
繁琐的xml配置有时候让人感到烦躁,而Spring支持的注解配置简化了bean的配置。
所以spring可以使用annotation进行主动注入以及自动检测bean。
Course类
package com.lubby.test;
import org.springframework.stereotype.Component;
@Component
publ...
分类:
编程语言 时间:
2014-06-14 13:19:13
阅读次数:
283
之前我有看过别人写的文章,说到如何获取客户端IP地址,代码如下:var io = require("socket.io").listen(server);io.sockets.on("connection", function (socket) { var address = sock...
分类:
其他好文 时间:
2014-06-14 08:48:28
阅读次数:
412
首先编写最底层的请求处理程序requestHandler.js,首先要通过npm在项目所在的目录安装formidable,通过语句:npm install
formidable安装,然后代码如下:var querystring = require("querystring");var fs = re...
分类:
Web程序 时间:
2014-06-12 16:44:12
阅读次数:
293
参考http://ourjs.com/detail/52ad26ff127c76320300001fOffcial
Sitehttp://requirejs.org/下载http://requirejs.org/docs/download.html
需要require.js才能正确执行require...
分类:
Web程序 时间:
2014-06-10 12:34:20
阅读次数:
259
在工程目录上右键, 选properties, 弹出属性窗口, 选中Web Project
Settings, 在右边的Context
root中修改保存即可死马当做活马医在你的工程目录下找到.settings里面的org.eclipse.wst.common.component,修改它的deploy...
分类:
编程语言 时间:
2014-06-10 10:22:13
阅读次数:
250
有朋友最近问到了 spring 加载类的过程,尤其是基于 annotation 注解的加载过程,有些时候如果由于某些系统部署的问题,加载不到,很是不解!就针对这个问题,我这篇博客说说spring启动过程,用源码来说明,这部分内容也会在书中出现,只是表达方式会稍微有些区别,我将使用spring 3.0的版本来说明(虽然版本有所区别,但是变化并不是特别大),另外,这里会从WEB中使用spring开始,...
分类:
编程语言 时间:
2014-06-08 17:06:14
阅读次数:
369