开发者社区> 问答> 正文

Sencha Touch 的第一个小例子,运行出错“Uncaught TypeE?400报错

Sencha Touch 的第一个小例子,运行出错“Uncaught TypeError: undefined is not a function ”? 400 报错 <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" />
<style>
.panel_cls{
font-size: 2em;
}
</style>

<script type="text/javascript" src="sencha-touch-debug.js"></script>    

<!--<script type="text/javascript" src="sencha-touch-all-debug.js"></script> -->//如果使用的是这行的js就不会报错

<script type="text/javascript">
Ext.setup({
icon:'icon.png',
glossOnIcon:false,
tabletStartupScreen:'talbet_startup.png',
phoneStartupScreen:'phone_startup.png',
onReady:function(){
var panel = new Ext.Panel({
id:'panel',
fullscreen:true,
html:'cls属性',
cls:"panel_cls"
});
}
});
</script>
</head>
<body></body>

</html>

按F12调试时提示这个错误

请大家帮我看看这是什么原因呢?谢谢大家

展开
收起
爱吃鱼的程序员 2020-06-03 14:39:56 514 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    可以用Sencha Cmd来打包

    2020-06-03 17:21:20
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载