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>
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>
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
Post a Comment