08 2018 档案

摘要:#表达式 -由一个或几个数字或者变量加上运算符组合成的一行代码 -通常会返回一个结果 #运算符 -由一个以上的值经过运算得到新值的过程就叫做运算 -参与运算的符号叫运算符 -运算符优先级: -运算符分类: -算数运算符:加减乘除+-*/、取余%、取商(也叫地板除)//、幂运算**(举例:a = 8 阅读全文
posted @ 2018-08-31 18:01 美滋滋的胖虎 阅读(307) 评论(0) 推荐(0)
摘要:1、插入语句:“insert into 数据表名(字段1,字段2,....) values("值1","值2",.....)" 例如:$sql = "insert into message(title,content,who) values('留言标题','留言内容','留言人')"; 2、删除语句 阅读全文
posted @ 2018-08-31 16:06 美滋滋的胖虎 阅读(962) 评论(0) 推荐(0)
摘要:(题外话1个字符=1个字节byte=8位比特bit,1位比特bit=8B,1KB=1024B,Unicode码下,1个汉字=两个字节) 程序=数据结构+算法 变量命名:1、下划线或大小写字母开头,后面可跟下划线、大小写字母和数字任意组合(但一般以下划线开头具有特殊含义,不建议使用) 2、推荐使用具有 阅读全文
posted @ 2018-08-31 15:56 美滋滋的胖虎 阅读(494) 评论(1) 推荐(0)
摘要:$this $this是指向对象实例的一个指针(在实例化的时候来确定指向),不指向任何其他对象或类 使用形式:$this->实例属性或实例方法() self关键字 self是指向类本身,也就是self是不指向任何已经实例化的对象,一般self使用来指向类中的静态变量。假如我们使用类里面静态(一般用关 阅读全文
posted @ 2018-08-31 10:40 美滋滋的胖虎 阅读(1194) 评论(0) 推荐(0)
摘要:document.body.addEventListener('touchmove', function(e) { e.stopPropagation();//阻止默认事件 e.preventDefault();//阻止冒泡 }); 阅读全文
posted @ 2018-08-31 10:03 美滋滋的胖虎 阅读(343) 评论(0) 推荐(0)
摘要:/* 函数名称:checkMobile() 功 能:检查输入手机号码是否正确 参 数:s格式字符串 返回结果:正确true/错误false */ function checkMobile(s){ if(!(/^1[3|4|5|8][0-9]\d{4,8}$/.test(s))){ // alert( 阅读全文
posted @ 2018-08-30 23:15 美滋滋的胖虎 阅读(94) 评论(0) 推荐(0)
摘要:<!-- 姓名 --> <input class="name" type="text" onkeyup="value=value.replace(/[^\a-\z\A-\Z\u4E00-\u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text 阅读全文
posted @ 2018-08-30 23:12 美滋滋的胖虎 阅读(601) 评论(0) 推荐(0)
摘要:/*触摸屏幕时间事件(需要先引入JQ插件)*/ $.fn.extend({ mctap:function(func){ var _this=this; this.on('touchstart',function(e){ tiptimer=new Date(); }).on('touchend',fu 阅读全文
posted @ 2018-08-30 22:57 美滋滋的胖虎 阅读(497) 评论(0) 推荐(0)
摘要:将二维码图片,放到一张比二维码大的透明图片上,再将图片导出来 阅读全文
posted @ 2018-08-30 22:08 美滋滋的胖虎 阅读(664) 评论(0) 推荐(0)
摘要:function querymedia(){ var _mediatype=location.pathname.match(/miniwap(\w*)\//)[1]; _mediatype=_mediatype==''?0:_mediatype; return _mediatype;} 阅读全文
posted @ 2018-08-30 22:05 美滋滋的胖虎 阅读(207) 评论(0) 推荐(0)
摘要://开始写css之前先清除页面样式 *{margin: 0px;padding: 0px;} //@media screen判断屏幕宽高适应不同分辨率 @media screen and (max-height:900px){ xxx{top:70.6%;}} //@font-face引入文字 { 阅读全文
posted @ 2018-08-30 22:00 美滋滋的胖虎 阅读(287) 评论(0) 推荐(0)
摘要:注意添加到head标签内 <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>// 先引入官方文件 <script> wx.config({ debug: true, // 开启调试模式,调用的所有api的返回值会 阅读全文
posted @ 2018-08-30 21:32 美滋滋的胖虎 阅读(449) 评论(0) 推荐(0)
摘要:HTML部分: <div id="orientLayer" class="mod-orient-layer"> <div class="mod-orient-layer__content"> <i class="icon mod-orient-layer__icon-orient"></i> <di 阅读全文
posted @ 2018-08-30 21:22 美滋滋的胖虎 阅读(958) 评论(0) 推荐(0)
摘要:注意要将代码添加到head标签内 <script> var phoneWidth = parseInt(window.screen.width); var phoneScale = phoneWidth/640; var ua = navigator.userAgent; if (/Android 阅读全文
posted @ 2018-08-30 21:17 美滋滋的胖虎 阅读(418) 评论(0) 推荐(0)
摘要:此处以点击音乐图片sndctrl实现功能举例: HTML部分: <div class="sndctrl"> <img class="homeLoadingImg" data-src="images/a01.png"><i></i> <audio id="audio" src="media/music 阅读全文
posted @ 2018-08-30 21:09 美滋滋的胖虎 阅读(2509) 评论(0) 推荐(0)
摘要:HTML部分: <div id="loading" class="loading position"> <div class="spinner"> <div class="bounce1"></div> <div class="bounce2"></div> <div class="bounce3" 阅读全文
posted @ 2018-08-30 21:00 美滋滋的胖虎 阅读(783) 评论(0) 推荐(0)
摘要:HTML部分: <div id="loading" class="loading position"> <div class="spinner"> <div class="bounce1"></div> <div class="bounce2"></div> <div class="bounce3" 阅读全文
posted @ 2018-08-30 20:56 美滋滋的胖虎 阅读(478) 评论(0) 推荐(0)