The first step is to introduce the desired style and JS file
<link rel= "stylesheet" type= "Text/css" href= "easyui/themes/default/easyui.css" ><link rel= "stylesheet" type = "Text/css" href= "easyui/themes/icon.css" ><script type= "Text/javascript" src= "Easyui/jquery.min.js" >< /script><script type= "Text/javascript" src= "Easyui/jquery.easyui.min.js" ></script>
The second step is to write the message prompt box
Function Description:
$.messager.alert |
Title, MSG, icon, fn |
displays a prompt window. Parameters: Title:the caption text that appears in the head panel. Msg:the message text that is displayed. Icon:displays a picture of the icon. The available values are:Error,question,Info,Warning. FN:The callback function that is triggered when the window is closed. |
$ (). Ready (function () {//Set message Messager $.messager.alert (' caption ', ' Hello Word ', ' Error ', function () {alert (' Back-off function '); });});
Step Three
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/56/A0/wKioL1SJyRHhxn9zAABgWdInXDg132.jpg "title=" Qq20141212003806.jpg "alt=" Wkiol1sjyrhhxn9zaabgwdinxdg132.jpg "/>
This article is from the "Lao Niu Java" blog, please be sure to keep this source http://liuyj.blog.51cto.com/2340749/1588968
Example of the jquery Easyui Getting Started