标题:dojo之Helloword
取消只看楼主
shuzhenqiu
Rank: 1
等 级:新手上路
帖 子:48
专家分:0
注 册:2005-12-9
 问题点数:0 回复次数:1 
dojo之Helloword
<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>
为什么上面的代码不行运行啊,在线等待
搜索更多相关主题的帖子: Helloword dojo 
2008-10-07 11:16
shuzhenqiu
Rank: 1
等 级:新手上路
帖 子:48
专家分:0
注 册:2005-12-9
得分:0 
上面的代码不能运行啊,没有对话框弹出来

是不要是怎么配置下啊
2008-10-07 18:33



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-236749-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.342299 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved