`
默默的小熊
  • 浏览: 234164 次
社区版块
存档分类
最新评论
文章列表

dojo.fromJson

    博客分类:
  • dojo
<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <script src="dojo16/dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true,isDebug:true"></script> &l ...

dojo.toJson

    博客分类:
  • dojo
<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <script src="dojo16/dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true,isDebug:true"></script> </ ...

dojo.connect

    博客分类:
  • dojo
    dojo的connect方法主要有两个作用:     1.函数链式的调用      当一个函数被调用,通过dojo.connect可以使另一个函数也被调用,像链条一样触发。   <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <script src="dojo16/dojo/dojo.js" dat ...

dojo新建模块

    博客分类:
  • dojo
   1. dojo.baseUrl     默认值是dojo的根目录,比如dojo.js的路径是在/web/scripts/dojo-1.3/dojo/dojo.js,那么这个baseUrl就是/web/scripts/dojo-1.3/dojo/ .   <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <script sr ...

djConfig

    博客分类:
  • dojo
    djConfig是一个配置开关,可以把它放在启动工具箱的script标签中。 <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"> </script>     注:以前的版本使用的是djConfig属性,现在使用的是data-dojo-config属性。     可以看到data-dojo-config中包含 ...

dojo数组处理

    博客分类:
  • dojo
    1. 数组中数据的查询   //方法原型dojo.indexOf(Array array, Any value, Integer fromIndex) //找不到返回-1 //例子: var a = dojo.indexOf(["foo","bar"],"baz"); //-1 var b = dojo.indexOf([1,3,5], 5); //2       2. 根据条件测试     在实际的开发中,我们会想知道数组中的每个元素是否符合一定的条件,dojo提供了some和every方法。   ...

xhrGet

    博客分类:
  • dojo
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>dojoXhr</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <script src="http://ajax.googleapis.com/ ...

Viewport

    博客分类:
  • ext
    ViewPort是一个特殊的容器代表整个浏览器显示界面。ViewPort默认显示在ducument.body中,能够随着浏览器大小变化自动重定大小和定位。就像其他的容器,如果你为它配置了一个布局管理器(Layout),viewport能够对其子组件进行重定位、设定相关大小。     通常ViewPort使用的布局管理器是border layout, 你可以根据自己的需要重新设定布局管理器。例如,你可以设置为fit布局,也可以使用card布局。     Inner layouts are available by virtue of the fact that all Panels a ...

Request

import java.util.*; import java.nio.*; import java.net.*; import java.io.*; import java.nio.channels.*; import com.sun.net.httpserver.*; import com.sun.net.httpserver.spi.*; /** */ class Request { final static int BUF_LEN = 2048; final static byte CR = 13; final static ...
/** * This class implements a simple HTTP server. A HttpServer is bound to an IP address * and port number and listens for incoming TCP connections from clients on this address. * The sub-class {@link HttpsServer} implements a server which handles HTTPS requests. * <p> * One or mor ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char ...
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char ...

Js的语句块

    在Js中通常没有语句块的概念。在很多语言中,语句块中定义的变量的作用范围仅限于该语句块中,不能在该语句块之外的代码使用。但是Js中,语句块中定义的变量能在其他语句块中使用。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"&g ...

Js变量初始化

    在定义了Js变量后,就可以引用该变量。对于定义后还没有赋值的变量,Js会默认该变量的值为undefined. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http- ...

Js局部变量

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char ...
Global site tag (gtag.js) - Google Analytics