ExtJS6.2版本---组件学习

时间:2021-12-17 18:46:49

1.按装插件spket--代码提示功能
2.准备加载提示功能

app.js
Ext.onReady(
    function helloword(){
        //加载函数
        Ext.MessageBox.alert("欢迎title","提示内容");    //调用MessageBox方法--弹出提示框
    }
);

index.html

<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
        <meta charset="utf-8" />
        <title>System</title>
        <link rel="stylesheet" type="text/css" href="extjs/themes/neptune/ext-theme-neptune-all.css" />
        
        <script src="extjs/ext-all.js" type="text/javascript"></script>
        <script src="extjs/ext-theme-neptune.js" type="text/javascript"></script>
        <script src="extjs/ext-locale-zh_CN.js" type="text/javascript"></script>
        <script src="app.js" type="text/javascript"></script>
    </head>
    <body>
        
    </body>
</html>

ExtJS6.2版本---组件学习ExtJS6.2版本---组件学习ExtJS6.2版本---组件学习