EasyUI基础知识
2016-07-16 07:11
316 查看
EasyUI的基础知识,比较简单,但是对于入门来说还是要注意和jquery的一些区别和联系的。
例如这一章,基本都是通过$.messager的各种方法来实现div呈现的效果;
第二点,注意在匿名函数的使用的时候,让然要注意继续使用同样的easyui的知识点来操作代码,不要又倒退回了js,技术小细节就是各种参数的灵活使用;
第三点,方法内的格式:{属性:'值',属性:'值'...,n}的使用方式。
例如这一章,基本都是通过$.messager的各种方法来实现div呈现的效果;
第二点,注意在匿名函数的使用的时候,让然要注意继续使用同样的easyui的知识点来操作代码,不要又倒退回了js,技术小细节就是各种参数的灵活使用;
第三点,方法内的格式:{属性:'值',属性:'值'...,n}的使用方式。
$(function(){ $.messager.alert('提示信息','我是信息内容!'); //注意要体现出来是div,可以使用alert('')来测试下。 //$.messager.alert('提示信息','我是信息内容!','error'); /* 第三个参数为匿名函数的实现 $.messager.confirm('标题信息','确认么?',function(r){ //i匿名函数的使用 if(r){ $.messager.alert('提示信息','确认'); }else{ $.messager.alert('提示信息','取消'); } }); $.messager.prompt('增加价格','请输入进货价格',function(value){ //增加实际用的效果. if(value>0&&value<1000){ $.messager.alert('提示信息',value); }else{ $.messager.alert('提示信息','输入无效!'); } }); $.messager.progress({ title:'进度条', msg:'系统信息', text:'正在初始化...', interval:1000 }); $.messager.show({ title:'提示信息', msg:'超级管理员上线了...' });*/ $.messager.show({ title:'提示信息', msg:'超级管理员上线了...' }); });
相关文章推荐
- PyQt5 pyuic
- EasyUI基础知识
- EasyUI基础知识
- Longest Consecutive Sequence
- Intuit Quicken Home & Business 2016(Manage your business and personal finances)
- ${pageContext.request.contextPath} 表达式的分析及作用
- [leetcode] 374. Guess Number Higher or Lower 解题报告
- 隐藏uuid1的mac信息
- 实战 Android中的UI过度绘制
- Codeforces Round #327 (Div. 1) B. Chip 'n Dale Rescue Rangers 二分
- requests模块
- UESTC 2016 Summer Training #4 Div.2 A - (。•_•。) 预处理打表
- iOS NSURLRequest NSMutableURLRequest 数据请求
- 微信web开发ui框架制作网页实例教程
- LeetCode 374 Guess Number Higher or Lower
- Android使用ValueAnimator开发仿余额宝数值增加控件
- 20.You have set Tablespace Full Metrics Threshold values for the USERS tablespace as follows:
- UINavigationController的简单实用
- 19.Which two statements about the background process of the database writer are true? (Choose two.)
- 18.View the Exhibit and identify the component marked with a question mark.