摘要: $('#bar').index(); //1,不传递参数,返回这个元素在同辈中的索引位置。 阅读全文
posted @ 2014-05-24 23:06 mabel_on_line 阅读(163) 评论(0) 推荐(0) 编辑
摘要: jQuery代码具体的写法和原生的Javascript写法在执行常见操作时的区别如下所示。需要的朋友可以过来参考下要使用jQuery,首先要在HTML代码最前面加上对jQuery库的引用,比如:库文件既可以放在本地,也可以直接使用知名公司的CDN,好处是这些大公司的CDN比较流行,用户访问你网站之前... 阅读全文
posted @ 2014-05-24 21:53 mabel_on_line 阅读(735) 评论(0) 推荐(0) 编辑
摘要: google的实现方式是: 图片可以作为a标签的背景或者嵌套子a标签里面,为a标签设置绝对定位,右面搜索框为正常块,为右面的搜索框设置margin-left即可具体如下,也可直接去看google搜索页.mw{ max-width:100%;}@media only screen and (... 阅读全文
posted @ 2014-05-24 20:23 mabel_on_line 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 1.初始化 screen_capture_injected="true" - Google 搜索 //摘自腾讯手机端//摘自腾google手机端以上加粗部分一定要写以下为腾讯教育网页版的两个mate标签,涉及到description 和 keyword... 阅读全文
posted @ 2014-05-24 19:52 mabel_on_line 阅读(5792) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/opper/archive/2009/01/12/1373971.htmljs javascript:void(0) 真正含义我想使用过ajax的都常见这样的代码:here但这儿的void(0)究竟是何含义呢?Javascript中void是一个操作符,... 阅读全文
posted @ 2014-05-24 18:26 mabel_on_line 阅读(231) 评论(0) 推荐(0) 编辑
摘要: var app_vote_end_time = new Date(2019, 12 - 1, 31, 23, 59, 59);var app_vote_now_time = new Date();if (app_vote_now_time > app_vote_end_time) { try { ... 阅读全文
posted @ 2014-05-24 16:50 mabel_on_line 阅读(104) 评论(0) 推荐(0) 编辑
摘要: document.location.href="http://www.w3school.com.cn/" 阅读全文
posted @ 2014-05-24 16:28 mabel_on_line 阅读(206) 评论(0) 推荐(0) 编辑