11 2019 档案

摘要:获取radio点击事件,不能用click(),而是用change(). $('input[name="options"]').change(function(){ console.log($(this).is(":checked")) }); 阅读全文
posted @ 2019-11-26 11:15 一粒小米-博客 阅读(365) 评论(0) 推荐(0) 编辑
摘要:1,求平均,保留2位小数: 2,条件累加 3,判空NULL 4, 时间格式化 5,批量更新 6,insert ignore into 和 replace into 7,FIND_IN_SET 函数 8,mod 求余数函数 9,判断数据库是否存在该表,避免表不存在错误 10,TO_DAYS 函数, 返 阅读全文
posted @ 2019-11-21 10:45 一粒小米-博客 阅读(178) 评论(0) 推荐(0) 编辑
摘要://图片大小控制ImgD图片路径,ImgW是宽或高 function DrawImage(ImgD,ImgW){ var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0){ if(image.width/image.height>= 1){ if(image.width>ImgW){ ImgD.wi 阅读全文
posted @ 2019-11-20 19:38 一粒小米-博客 阅读(1063) 评论(0) 推荐(0) 编辑
摘要:前提:PHP 7 改变了大多数错误的报告方式。不同于 PHP 5 的传统错误报告机制,现在大多数错误被作为 Error 异常抛出。 这样一来, 有多个catch情况, 把异常情况都捕获到。 阅读全文
posted @ 2019-11-18 18:31 一粒小米-博客 阅读(210) 评论(0) 推荐(0) 编辑
摘要:strtotime('+1 month'),strtotime('-1 month') 碰到一个月中有28, 31天的就会有问题, 比如 strtotime('+1 month', strtotime('2019-10-31')) 就会跳到 12月份去,而不是11月份; 所以一般要用 或者 阅读全文
posted @ 2019-11-16 11:00 一粒小米-博客 阅读(329) 评论(0) 推荐(0) 编辑
摘要:效果图: 1、html 代码 2、css 代码 阅读全文
posted @ 2019-11-04 16:20 一粒小米-博客 阅读(305) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示