摘要: 监听自定义事件(接收页面应用) 添加自定义事件监听操作和标准js事件监听类似,可直接通过window对象添加,如下: 触发自定义事件(传参页面应用)通过mui.fire()方法可触发目标窗口的自定义事件:参数 自定义事件完整例子传参页面: 接收页面 阅读全文
posted @ 2017-07-24 21:13 卖女孩的小火柴2号 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 传值页面index.html <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,ma 阅读全文
posted @ 2017-07-24 15:49 卖女孩的小火柴2号 阅读(148) 评论(0) 推荐(0) 编辑
摘要: index.html页面 <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maxi 阅读全文
posted @ 2017-07-24 11:30 卖女孩的小火柴2号 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 轮播组件是mui提供的一个核心组件,在该核心组件基础上,衍生出了图片轮播、可拖动式图文表格、可拖动式选项卡、左右滑动9宫格等组件,这些组件有较多共同点。Dom构造: <div class="mui-slider"> <div class="mui-slider-group"> <div class= 阅读全文
posted @ 2017-07-23 21:54 卖女孩的小火柴2号 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 1、mui.alert() 普通提醒参数 演示代码 2、mui.confirm() 确定消息框参数 演示代码 3、mui.prompt() 输入框参数 演示代码 4、mui.toast() 自动消失的消息框 5、表单元素 基本说明:所有包裹在.mui-input-row 类中的 input、text 阅读全文
posted @ 2017-07-23 20:35 卖女孩的小火柴2号 阅读(2713) 评论(0) 推荐(0) 编辑
摘要: 完整代码: <header class="mui-bar mui-bar-nav"> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> <h1 class="mui-title">hello</h1> < 阅读全文
posted @ 2017-07-23 18:12 卖女孩的小火柴2号 阅读(3667) 评论(0) 推荐(0) 编辑
摘要: 代码部分: <?PHPheader("Content-type:text/html;charset=utf-8");$pageSize = 10;//接收传入的分页码$page = $_GET['p'];//获取分页数据$host = "localhost";$username = "root";$ 阅读全文
posted @ 2017-07-23 17:02 卖女孩的小火柴2号 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 有一些点需要注意: 1,创建画布,imagecreatetruecolor() 配置颜色,imagecolorallocate()2,用矩形填充画布,imagefilledrectangle()3,把TrueType文本写入图像,imagettftext()4,添加干扰点,imagesetpixel 阅读全文
posted @ 2017-07-23 17:01 卖女孩的小火柴2号 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 购物车页面: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="htt 阅读全文
posted @ 2017-07-23 17:01 卖女孩的小火柴2号 阅读(485) 评论(0) 推荐(0) 编辑
摘要: <?php//连接数据库function connect(){ $link = mysql_connect(DB_HOST,DB_USER,DB_PWD)or die("数据库连接失败Error:".mysql_errno().":".mysql_error());//mysql_errno()指m 阅读全文
posted @ 2017-07-23 17:00 卖女孩的小火柴2号 阅读(174) 评论(0) 推荐(0) 编辑