Object--->Data
那么如何声明类-->并非数据
Object--declare
var obj1=new Object();
var obj2=new Boolean;
var date1=new date();
var obj3={};
var obj4={name:'roboce',age:21};
BOM,DOM,Js Object
Array,Boolean,Date,Math,Number,String,RegExp,Global,
javascript基本组成
Object,variable,function
Object--save data(property,and method)
function--sava logic and function
1 'use strict'; 2 3 var DEFAULT_URL = 'compressed.tracemonkey-pldi-09.pdf'; 4 var DEFAULT_SCALE = 'auto'; 5 var DEFAULT_SCALE_DELTA = 1.1; 6 var UNKNOWN_SCALE = 0; 7 var CACHE_SIZE = 20; 8 var CSS_UNITS = 96.0 / 72.0; 9 var SCROLLBAR_PADDING = 40;10 var VERTICAL_PADDING = 5;11 var MIN_SCALE = 0.25;12 var MAX_SCALE = 4.0;13 var SETTINGS_MEMORY = 20;14 var HISTORY_DISABLED = false;15 var SCALE_SELECT_CONTAINER_PADDING = 8;16 var SCALE_SELECT_PADDING = 22;17 var RenderingStates = {18 INITIAL: 0,19 RUNNING: 1,20 PAUSED: 2,21 FINISHED: 322 };23 var FindStates = {24 FIND_FOUND: 0,25 FIND_NOTFOUND: 1,26 FIND_WRAPPED: 2,27 FIND_PENDING: 328 };