javascript - extjs can't display correctly -


it's 2 thirty in here , still stuck problem.i writing simple demo page doesn't display way expected.at first tried extjs6.2.0-gpl,then tried ext.js3.4.0.neither of them seem work.

with ext.js3.4.0:

<html> <head>     <link href="./ext-3.4.0/resources/css/ext-all.css" />     <script src="./ext-3.4.0/ext-base.js"></script>     <script src="./ext-3.4.0/ext-all.js"></script>     <script>         ext.onready(function() {             ext.messagebox.alert("ss");         });     </script> </head> <body> </body> </html> 

folder hierarchy:
enter image description here

display: enter image description here

with extjs6:

<html> <head>     <link href="./ext6/resources/theme-classic-all.css" />     <script src="ext6/ext-bootstrap.js"></script>     <script src="ext6/ext-all.js"></script>     <script type="text/javascript">         ext.onready(function() {             ext.messagebox.alert("ss");         });          </script> </head> <body> </body> </html> 

folder hierarchy:
enter image description here

display: enter image description here

just try use cdnjs url test if right result.here sample code

    <!doctype html> <html>    <head>       <link href="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/classic/theme-classic/resources/theme-classic-all.css" rel="stylesheet" />       <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/ext-all.js"></script>       <script type="text/javascript">          ext.onready(function() {           ext.messagebox.alert("ss");          });       </script>    </head>    <body>    </body> </html> 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -