移动前端页面制作技巧

摘要: 一、http://www.webank.com/mobile/index.htmlhttp://qzs.qq.com/qzone/qzact/act/qzapp/qzone5.0/mobile/index.html?g_f=5758&srctype=62&ticket=http://cyyis.me... 阅读全文
posted @ 2015-06-23 17:37 xinxin8840 阅读(162) 评论(0) 推荐(0)

工作记录一

摘要: 1、使用Math.floot和Math.random取随机整数Math.random():获取0~1随机数Math.floot()向下取整如:现在要从1~52内取一个随机数:首先Math.random()*52 //这样我们就能得到一个 >=0 且 =1 且 <53再使用Math.floor取整最终... 阅读全文
posted @ 2015-06-11 15:35 xinxin8840 阅读(145) 评论(0) 推荐(0)

第二课:html5基础

摘要: 一、json的新方法1、parse():把字符串转换成jsonparse():只能解析JSON形式的字符串变成js,而且字符串中的属性要严格加上引号eval():可以解析任何字符串变成jsvar str = 'function show(){alert(123)}';eval(str);show()... 阅读全文
posted @ 2015-06-10 17:02 xinxin8840 阅读(143) 评论(0) 推荐(0)

html5新的选择器

摘要: 1、querySelector document.querySelector('#div1') document.querySelector('.box') 只能选择一组中的第一个元素 document.querySelector('[title=hello]')2、querySelector... 阅读全文
posted @ 2015-06-10 15:43 xinxin8840 阅读(118) 评论(0) 推荐(0)

html5新增语义化标签

摘要: 1、2、3、4、 页面上的一个标题组合,如下: IT培训5、用来划分区域6、主体 和主体相关的附属信息7、媒体元素 媒体元素 8、9、 javascript html css10、 老师 2+2 等于? 学生 4 老师 答对了!11、进度条 76%二、新增表... 阅读全文
posted @ 2015-06-10 11:45 xinxin8840 阅读(132) 评论(0) 推荐(0)