根据网上提供的,成功的将ExtJS相关的js文件导入,在JS文件中写Ext打点提示也有,但是运行的时候总是提示Ext is not defined.
//JS代码
Ext.onReady(function(){
Ext.MessageBox.alert('hello,world','nihao');
});
HTML代码
<!DOCTYPE html>
<html>
<head>
<title>=皿=</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="demo.js">
</script>
</head>
<body>
</body>
</html>