摘要: 动态加载数据绑定事件(ios没反应,需要另外添加一个空事件onclick="") $(document).on('click', '#list li', function() { //function code here. }); 遍历含有某个class的内容 $.each($(".itemlist 阅读全文
posted @ 2016-03-11 15:48 CorderBob 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1 <html> 2 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>划词搜索</title> 6 <style> 7 .ttb-box { 8 display: no 阅读全文
posted @ 2023-03-27 17:57 CorderBob 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 这个javascript函数是获取当前时间前后N天日期的方法,可以得到昨天,今天,明天,一月前,三月前,半年前,一年前的日期,只要修改参数就可以实现得到任何一个天数。具体用法如下: // 传入参数获取N天后日期 function GetDateStr(AddDayCount) { var dd = 阅读全文
posted @ 2022-08-08 16:30 CorderBob 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 一、设置指令 1.设置(全局)用户名和邮箱: $ git config (--global) user.name yourName $ git config (--global) user.email yourEmail 设置(全局)仓库地址: $ git config (--global) rem 阅读全文
posted @ 2021-11-30 15:52 CorderBob 阅读(48) 评论(0) 推荐(0) 编辑
摘要: function jsonFormat(txt, tiperror, compress/*是否为压缩模式*/) {/* 格式化JSON源码(对象转换为JSON文本) */ var indentChar = ' '; if (/^\s*$/.test(txt)) { if (tiperror) ale 阅读全文
posted @ 2020-12-25 10:37 CorderBob 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 1、可以使用FastStone Capture 软件长截屏 2、Chrome内核浏览器截屏方法【无需软件】 Chrome内核浏览器f12打开控制台,按快捷键“Ctrl+shift+p”输入full,敲回车即可网页截图(根据浏览器页面渲染截图) 阅读全文
posted @ 2020-11-06 15:27 CorderBob 阅读(161) 评论(0) 推荐(0) 编辑
摘要: /** * 指定日期加减 * date:要加减日期 * days:要加减的天数,往前算传负数,往后算传正数 */ function addDate(date, days) { var d = new Date(date); d.setDate(d.getDate() + days); var m = 阅读全文
posted @ 2020-09-28 11:28 CorderBob 阅读(557) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-04-20 11:51 CorderBob 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 前端: 后台: 阅读全文
posted @ 2019-10-24 11:52 CorderBob 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: 1、添加元素与js 阅读全文
posted @ 2019-05-28 12:00 CorderBob 阅读(3379) 评论(0) 推荐(1) 编辑
摘要: 1.css.switch{ pointer-events:none} 2.jsvar App = new Vue({ template: '<i-switch @click="change" :value="open"class="switch" ></i-switch>', data(){ ret 阅读全文
posted @ 2019-04-04 17:33 CorderBob 阅读(1662) 评论(0) 推荐(0) 编辑