TL,DR: 务必总是在构建函数里定义实例属性。
function WorldA () {
// ...
}
WorldA.prototype = {
// Require libraries | |
var os = require("os"); | |
var fs = require("fs"); | |
var readline = require("readline"); | |
var cluster = require("cluster"); | |
var express = require("express"); | |
var site = express(); | |
// Var up, bro | |
var i, read; |
<!DOCTYPE html> | |
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
rect { |
# -*- coding: utf-8 -*- | |
import cgi,sqlite3,datetime | |
from wsgiref.simple_server import make_server | |
LIMIT=50 # 最大表示記事数. | |
DB_FILE='/sdcard/bbs.sqlite' | |
con=sqlite3.connect(DB_FILE) | |
cur=con.cursor() |
<html> | |
<head> | |
<title>Androino</title> | |
<style> | |
body { | |
background: #32323D; | |
} | |
div#content { | |
padding-top:100px; |
## Alexey Kachayev, 2014 | |
## Link to slides: | |
## http://goo.gl/n4ylC4 | |
## Basic: | |
## type Parser = String -> Tree | |
## Composition | |
## type Parser = String -> (Tree, String) |
- shim - What is a Polyfill? / Shim vs Polyfill / Extend the Web Forward
- mo - A collection of OzJS core modules
Object.observe
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).