- Simple Type is immutable
Number,String,boolean,null,undefined - Object is mutable
Object are mutable keyed collections
property can be any value except undefined
retrieve proptery: obj[name] equals to obl.name
#HTML Selects
JQuery mobile http://jquerymobile.com/
Sencha touch http://www.sencha.com/products/touch/
BootStrap http://twitter.github.com/bootstrap/
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
| /** | |
| * @method hasher | |
| * @param {String} URL URL to be hashed | |
| * @returns {String} hash Base 62 hash representation of the URL | |
| **/ | |
| var hasher = exports.hasher = function(URL, length) { | |
| if (!length) length = 6; | |
| var AUID = [], | |
| CHARS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''); |
| var db = require('../config.js').db; | |
| db.bind('sequence'); | |
| var defaultName = 'common'; | |
| var defaultOffset = 1; | |
| var sequenceMap = {}; | |
| var sequenceLockMap = {}; | |
| exports.next = function(callback){ | |
| exports.nextKey(defaultName, callback); | |
| }; |
| <link href="print.css" rel="stylesheet" type="text/css" media="screen,print"/> | |
| ... | |
| <div style="-fs-page-sequence: start; page-break-before: always"> | |
| <div style="position: running(current);"> | |
| <div id="page-header" class="small"> | |
| <span class="align-left">some stuff here</span> | |
| <span class="align-right">some other stuff here</span> | |
| <div class="line"> </div> |