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

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>

 

posted @ 2019-04-10 10:34  小白咚  阅读(242)  评论(0编辑  收藏  举报