注册 登录
编程论坛 ASP.NET技术论坛

dojo之Helloword

shuzhenqiu 发布于 2008-10-07 11:16, 1175 次点击
<html>   
<head>     
<title> Dojo:   Hello   World! </title>     
<script   type= "text/javascript "   src= "js/dojo/dojo.js ">
dojo.require( "dojo.event.* ");      
dojo.require( "dojo.widget.* ");      
dojo.require( "dojo.widget.Button ");     
dojo.addOnLoad(init);   

  function   helloPressed()      
  {
  alert( 'You   pressed   the   button ');      
  }      
   
  function   init()      
  {      
  var   helloButton   =   dojo.widget.byId( 'helloButton ');         
  dojo.event.connect(helloButton,   'onClick ',   'helloPressed ');      
  }         
</script>
</head>   
<body>
<button   dojoType= "Button "   widgetId= "helloButton "> Hello   World! </button>
</body>
</html>
为什么上面的代码不行运行啊,在线等待
4 回复
#2
hebingbing2008-10-07 12:31
请问出了什么错误啊
#3
foshan2008-10-07 12:34
dojo 是什么东东来滴???
#4
hebingbing2008-10-07 12:42
Dojo是一个用JavaScript语言实现的开源DHTML工具包。
#5
shuzhenqiu2008-10-07 18:33
上面的代码不能运行啊,没有对话框弹出来

是不要是怎么配置下啊
1