posted by 뚱2

자기 자신이 자신을 업그레이드 한다는게 이상하지 않나?

#최신버전으로 업그레이드 한다.

sudo npm install -g npm

posted by 뚱2


posted by 뚱2

링크 :

이제 자바스크립트로 어플리케이션을 만드는 날이 왔구나.

연구해 봐야겠다.

posted by 뚱2

링크 :

링크 :

var express = require('express');

var app = express();

// Register ejs as .html. If we did

// not call this, we would need to

// name our views foo.ejs instead

// of foo.html. The __express method

// is simply a function that engines

// use to hook into the Express view

// system by default, so if we want

// to change "foo.ejs" to "foo.html"

// we simply pass _any_ function, in this

// case `ejs.__express`.

app.engine('.html', require('ejs').__express);

// Optional since express defaults to CWD/views

app.set('views', __dirname + '/views');

// Without this you would need to

// supply the extension to res.render()

// ex: res.render('users.html').

app.set('view engine', 'html');

// Dummy users

var users = [

  { name: 'tobi', email: '' },

  { name: 'loki', email: '' },

  { name: 'jane', email: '' }


app.get('/', function(req, res){

  res.render('users', {

    users: users,

    title: "EJS example",

    header: "Some users"




console.log('Express app started on port %d', 80);

posted by 뚱2

링크 :

posted by 뚱2

링크 :

IntelliJ IDEA를 사용하고 있는데 Node Module을 만들고 구동했더니

콘솔에 [ReferenceError: Process is not defined] 발생했다.

구글링 모듈 Root의 node_modules 하위의 tools/node.js의 'vm.createContext'을 찾아서 아래의 하이라이팅 부분(4, 5 라인)을 

추가해 준다.

var UglifyJS = vm.createContext({

      sys           : sys,

      console       : console,

      process       : process,

      Buffer        : Buffer,

      MOZ_SourceMap : require("source-map")


posted by 뚱2

[Node.js] Node download

JavaScript/NodeJS 2014. 1. 10. 10:21

Download :

Documentation :

posted by 뚱2

[Node.js] Node.js tutorial

JavaScript/NodeJS 2013. 4. 23. 12:38

링크 : 

posted by 뚱2
children: [
    title: null, // (required) Displayed name of the node (html is allowed here)
    key: null, // May be used with activate(), select(), find(), ...
    isFolder: false, // Use a folder icon. Also the node is expandable but not selectable.
    isLazy: false, // Call onLazyRead(), when the node is expanded for the first time to allow for delayed creation of children.
    tooltip: null, // Show this popup text.
    href: null, // Added to the generated < a > tag.
    icon: null, // Use a custom image (filename relative to tree.options.imagePath). 'null' for default icon, 'false' for no icon.
    addClass: null, // Class name added to the node's span tag.
    noLink: false, // Use < span > instead of < a > tag for this node
    activate: false, // Initial active status.
    focus: false, // Initial focused status.
    expand: false, // Initial expanded status.
    select: false, // Initial selected status.
    hideCheckbox: false, // Suppress checkbox display for this node.
    unselectable: false, // Prevent selection.
    // The following attributes are only valid if passed to some functions:
    children: null // Array of child nodes.
    // NOTE: we can also add custom attributes here.
    // This may then also be used in the onActivate(), onSelect() or onLazyTree() callbacks.

'JavaScript > dynaTree' 카테고리의 다른 글

[dynatree] TREE TO TREE DRAG AND DROP 예제  (0) 2012.02.21
[dynatree] dynatree node option  (0) 2012.02.09
[dynatree] Option 옵션  (0) 2012.02.09
[dynatree] dynatree (jQuery 기반의 tree-plugin)  (0) 2012.02.08
posted by 뚱2
링크 :
posted by 뚱2