摘要: Page Title 阅读全文
posted @ 2019-01-25 20:33 我爱大西瓜 阅读(205) 评论(0) 推荐(0) 编辑
摘要: var box = $('div'); $('button').eq(0).click(function() { //给某一个元素添加类 box.addClass('bgr'); }); $('button').eq(1).click(... 阅读全文
posted @ 2019-01-21 14:11 我爱大西瓜 阅读(241) 评论(0) 推荐(0) 编辑
摘要: $('input:radio[name="sex"]:checked') 阅读全文
posted @ 2019-01-21 11:31 我爱大西瓜 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-01-13 09:41 我爱大西瓜 阅读(593) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2019-01-11 20:50 我爱大西瓜 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 使用 AJAX 修改该文本内容 修改内容 阅读全文
posted @ 2019-01-11 16:46 我爱大西瓜 阅读(143) 评论(0) 推荐(0) 编辑
摘要: input::-webkit-input-placeholder { /* WebKit, Blink, Edge */ color: #909; } input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #909; } i... 阅读全文
posted @ 2019-01-07 19:59 我爱大西瓜 阅读(300) 评论(0) 推荐(0) 编辑
摘要: //localStorage.setItem----存入本地存储 可以存储5M,可以用于避免标签中存值 localStorage.setItem() //自定义属性 data- //未来元素 在非未来元素上用on追加绑定事件 阅读全文
posted @ 2018-12-11 11:19 我爱大西瓜 阅读(111) 评论(0) 推荐(0) 编辑
摘要: //解决ios和安卓选择时间出现NAN let datestr = "2018-12-10 20:13:13"; console.log(new Date(datestr.replace(/-/g, "/")).valueOf()); 阅读全文
posted @ 2018-12-11 11:17 我爱大西瓜 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 销毁json属性 阅读全文
posted @ 2018-12-03 16:39 我爱大西瓜 阅读(92) 评论(0) 推荐(0) 编辑