参考 :?http://www.jb51.net/article/16366.htm ?//1.工厂模式 function?createPerson(name,?age,?job)?{
????var?o?=?{};
????o.name?=?name;
????o.age?=?age;
????o.job?=?j...
分类:
Web程序 时间:
2014-10-24 14:49:32
阅读次数:
111
showDiv($("#pop"));function showDiv(obj){ $(obj).show(); center(obj); $(window).scroll(function(){ center(obj); }); $(window).resize(function(){ cen.....
分类:
Web程序 时间:
2014-10-24 14:20:11
阅读次数:
285
Flexviewer调用特定的widget: 之前一直是自己添加个固定的key来调用widget 但是后来发现框架早就为你写好啦调用widget的方法 在WidgetManager中有个public function getWidgetId(widgetLabel:String):Number方法其...
分类:
其他好文 时间:
2014-10-24 14:19:39
阅读次数:
193
每天一个JavaScript实例-获取元素当前高度
#date{width:90%;height:25%;padding:10px;background: red;}
window.onload = function(){
var height = getHeight();
console.log(height);
}
function getHeight(){
var height...
分类:
编程语言 时间:
2014-10-24 13:05:02
阅读次数:
181
sorted(...)
Help on built-in function sorted in module __builtin__:
sorted(...)
sorted(iterable, cmp=None, key=None, reverse=False) --> new sorted list
sort(...)
Help on built-in function sor...
分类:
编程语言 时间:
2014-10-24 13:03:18
阅读次数:
202
问题描述:
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
解...
分类:
其他好文 时间:
2014-10-24 13:03:03
阅读次数:
148
// 判断各种浏览器,找到正确的方法
function launchFullscreen(element) {
if(element.requestFullscreen) {
element.requestFullscreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen(...
分类:
Web程序 时间:
2014-10-24 13:00:34
阅读次数:
198
1:引用模块"http" (执行命令node app.js "http://www.baidu.com")//app.jsvar http = require('http');var url = require('url');function spider(u,cb){ http.get( u...
分类:
Web程序 时间:
2014-10-24 12:56:37
阅读次数:
222
octave:14> help plot'plot' is a function from the file C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\3.6.4\m\plot\plot.m -- Function File: plot (Y) -- ....
分类:
其他好文 时间:
2014-10-24 12:47:20
阅读次数:
351