10 2022 档案
摘要:function logs($content, $subDir = ''){ $subDir = trim($subDir, '/\\'); if (empty($content)) return false; static $arrConfig = array(); if (empty($arrC
阅读全文
摘要:滚动条显示overflow-x:hidden; //横向超出部分隐藏overflow-y:auto; //竖向超出滚动条显示html: <div class="mod_select"> <ul> <li> <span class="select_label">sort buy:</span> <di
阅读全文
摘要:1、数字前端去0 var num = number.replace(/\b(0+)/gi,"") 2、文字去除空格 var str = str.replace(/(^\s*)|(\s*$)/g, "") 3、截取字符串 var str = abcdef str = str.substr(2,3) /
阅读全文
摘要:date.getYear(); // 获取当前年份(2 位) date.getFullYear(); // 获取完整的年份(4 位, 1970-????) date.getMonth(); // 获取当前月份(0-11,0 代表 1 月) date.getDate(); // 获取当前日(1-31)
阅读全文