码迷,mamicode.com
首页 >  
搜索关键字:A component require    ( 12084个结果
上传和下载文件
1. 上传文件(1) controller@RequestMapping(value={"/uploadFile"},method={RequestMethod.POST}) public String upload(@RequestParam(value = "file", require...
分类:其他好文   时间:2014-08-04 21:01:27    阅读次数:345
CommonJS规范 by ranyifeng
1,概述CommonJS是服务器端模块的规范,Node.js采用了这个规范。根据CommonJS规范,一个单独的文件就是一个模块。加载模块使用require方法,该方法读取一个文件并执行,最后返回文件内部的exports对象。下面就是一个简单的模块文件example.js。console.log("...
分类:Web程序   时间:2014-08-04 17:33:37    阅读次数:300
getWidth和getMeasuredWidth在何时可以得到正确数值
getMeasuredWidth在源码中的解释如下: /** * Like {@link #getMeasuredWidthAndState()}, but only returns the * raw width component (that is the result is masked by * {@link #MEASURED_SIZE_MASK}...
分类:其他好文   时间:2014-08-04 14:36:27    阅读次数:265
线程句柄有什么用
非托管资 源:ApplicationContext,Brush,Component,ComponentDesigner,Container,Context,Cursor,FileStream,Font,Icon,Image,Matrix,Object,OdbcDataReader,OleDBData...
分类:编程语言   时间:2014-08-03 23:04:56    阅读次数:416
staticFileServer.js
var http = require('http'), fs = require('fs'), url = require('url'), path = require('path');http.createServer(function(req, res) { var pathurl = u...
分类:Web程序   时间:2014-08-03 20:29:25    阅读次数:643
node.js在win7下安装,并测试是否安装成功
1、node.js去官网下载,下载完,像平时安装软件一样2、把下面的测试文件,放到安装目录下,本文是放到:D:\Program Files\nodejs下var http = require("http"); http.createServer(function(request, response)...
分类:Windows程序   时间:2014-08-02 18:16:33    阅读次数:309
node.js 创建HTTP服务器
这个才是我们学node.js的真正原因,服务器!1、新建一个 index.js 写下var myhttp=require('http');myhttp.createServer(function(req,res){res.writeHead(200,{'Content-Type':''text/t....
分类:Web程序   时间:2014-08-02 18:05:13    阅读次数:224
模块加载简单实现
代码仍有问题,就是导入jQuery后无法使用$问题。想参考RequireJS的做法(先去研究下):require(['jquery', 'underscore', 'backbone'], function ($, _, Backbone){ // some code here});本代码为原...
分类:其他好文   时间:2014-08-02 18:05:03    阅读次数:207
Node.js笔记(0001)---connect模块
首先来看这一部分代码 1 /** 2 * Created by bsn on 14-7-1. 3 */ 4 var connect = require('connect'); 5 6 var app = connect(); 7 function hello(req, res, next) {...
分类:Web程序   时间:2014-08-02 12:41:53    阅读次数:193
UVM基础之---------uvm factory机制base
从名字上面就知道,uvm_factory用来制造uvm_objects和component。在一个仿真过程中,只有一个factory的例化存在。用户定义的object和component types通过typedef或者宏在factory中注册,factory产生和保存轻量级的代理(proxy): ...
分类:其他好文   时间:2014-08-02 12:32:13    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!