我用 ExtJS 4.0 试了一下下面的代码,但是按钮却不显示,请问是为什么?<html>
<head><link rel = "stylesheet" type = "text/css"
href="resources/css/ext-all.css"/>
<script src="ext-all.js"></script><script>
Ext.onReady( function(){
Ext.Msg.show({
title: 'Milton',
msg: "Have you seen my stapler?",
buttons: {
yes: true,
no: true,
cancel: true
}
}
);
} )</script>
</head>
</html>
<head><link rel = "stylesheet" type = "text/css"
href="resources/css/ext-all.css"/>
<script src="ext-all.js"></script><script>
Ext.onReady( function(){
Ext.Msg.show({
title: 'Milton',
msg: "Have you seen my stapler?",
buttons: {
yes: true,
no: true,
cancel: true
}
}
);
} )</script>
</head>
</html>
解决方案 »
- 我是初学者,用jquery做一个模拟五角星评分,table里面td不显示内容的问题!求教!
- 使用innerHTML刷页面里面含有脚本但不执行的问题
- (javascript+dom编程艺术例题)运行脚本以后,无论点击那一个图片链接都显示最后一张图片
- javascript初学者,交流
- 用lighttpd搭建了一个服务器,如何制作一个访问页面的登录窗口才能进入这个网址呢?
- 有什么语句可以使下拉列表处于打开状态?
- 求高手帮我查一下错误,急等!!!!!!!!
- gmail里的“正在载入”怎样做到的不会抖动?
- 求一JS程序:实现在页面上动态随机飘动的一个广告!调试好了,马上给分,还可加分
- 【求解】jQuery如何判断大于一屏和小于一屏
- 高手帮忙解释下<script type="text/javascript" src="../ckeditor/ckeditor.js?t=B37D54V">
- xheditor快捷键问题
只需引入一个css文件和一个js文件
text : '保存',
handler : function() {
alert()
}
}, {
text : '取消',
handler : function() {
alert()
}
}]
<head><link rel = "stylesheet" type = "text/css"
href="resources/css/ext-all.css"/>
<script src="bootstrap.js"></script><script>
Ext.onReady( function(){
Ext.Msg.show({
title: 'Milton',
msg: "Have you seen my stapler?",
buttons: [{
text: 'yes'
}, {
text: 'no'
},
{
text: 'cancel'
}]
}
);
} );</script>
</head>
</html>
是的,在Firefox 4.0.1浏览器下Extjs的代码效果是不显示的,这是正常的,兄弟用IE吧,我们公司基本上不用Firefox,用火狐EXTJS就没效果了!
4.0变了
Ext.onReady(function () {
Ext.Msg.show({
title: 'milton',
msg: 'Have you seen my stapler?',
buttons: Ext.Msg.YESNOCANCEL
});
});
<link rel="stylesheet" type="text/css" href="./ext-4.0.1/resources/css/ext-all.css" />
<script type="text/javascript" src="./ext-4.0.1/bootstrap.js"></script>
Ext.onReady(function() {
Ext.create('Ext.Button', {
text: 'Click me',
renderTo: Ext.getBody(),
handler: function() {
alert('You clicked the button!')
}
});
});