秦小小樱

导航

2018年2月5日 #

confirm消息对话框

摘要: function rec(){ var mymessage= confirm("你是女孩?") ; if(mymessage==true) { document.write("你是女士!"); } else { document.write("你是男士!"); } 阅读全文

posted @ 2018-02-05 13:39 RonnieQin 阅读(140) 评论(0) 推荐(0) 编辑

网站性能优化

摘要: javascript作为一种脚本语言可以放在html页面中任何位置,但是浏览器解释html时是按先后顺序的,所以前面的script就先被执行。比如进行页面显示初始化的js必须放在head里面,因为初始化都要求提前进行(如给页面body设置css等);而如果是通过事件调用执行的function那么对位 阅读全文

posted @ 2018-02-05 11:03 RonnieQin 阅读(142) 评论(0) 推荐(0) 编辑

在JS文件中,不需要<script>标签

摘要: 在JS文件中,不需要<script>标签\ 阅读全文

posted @ 2018-02-05 10:55 RonnieQin 阅读(262) 评论(0) 推荐(0) 编辑

2018年1月24日 #

网页点击事件

摘要: document.onclick = function(){ $(".gameCategory").hide();} 阅读全文

posted @ 2018-01-24 16:23 RonnieQin 阅读(183) 评论(0) 推荐(0) 编辑

2018年1月23日 #

自动轮播

摘要: 轮播设置 阅读全文

posted @ 2018-01-23 16:15 RonnieQin 阅读(659) 评论(0) 推荐(0) 编辑

富文本

摘要: .detTitT{ height:250px; margin-top:20px;} .detTitT input{ height:250px; width:100px; line-height:45px; display:block; border:#dbdbdb solid 1px; } 阅读全文

posted @ 2018-01-23 11:09 RonnieQin 阅读(179) 评论(0) 推荐(0) 编辑

2018年1月22日 #

登录注册

摘要: html: css: JS: 阅读全文

posted @ 2018-01-22 16:04 RonnieQin 阅读(250) 评论(0) 推荐(0) 编辑

下拉框

摘要: css js 阅读全文

posted @ 2018-01-22 14:49 RonnieQin 阅读(257) 评论(0) 推荐(0) 编辑

2018年1月17日 #

新增加的元素 相关操作获取不到

摘要: 1.addspan为新增加的元素 2 。或者我们在 定义eleSpan的时候为元素写上 一个方法 是删除的操作 阅读全文

posted @ 2018-01-17 15:34 RonnieQin 阅读(209) 评论(0) 推荐(0) 编辑

2018年1月10日 #

部分内容 自动轮播

摘要: 用于一整块非仅仅图片 轮播 html: css: js: 阅读全文

posted @ 2018-01-10 17:25 RonnieQin 阅读(217) 评论(0) 推荐(0) 编辑