摘要: /** * 砍价算法-生成砍价金额 * * @param int $people 砍价人数或次数 * @param int $amount 砍价总额 单位元 * @param int $min 最低砍价金额 不得低于0 * @param int $max 最高砍价金额 砍价次数 * 最高砍价金额不得 阅读全文
posted @ 2019-12-31 09:51 宋健安 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: function getCurrentDate(fulldate = false, separator = ['-', ':']) { let currentTimeObj = new Date(); let year = currentTimeObj.getFullYear(); let mont 阅读全文
posted @ 2018-08-16 11:06 宋健安 阅读(2304) 评论(0) 推荐(0) 编辑
摘要: HelloWorld.vue 文件 <template> <div class="hello"> <h1>{{ msg }}</h1> <div> <div class="team" v-for="(team,tindex) in teamDataArr" :key="tindex"> <div c 阅读全文
posted @ 2018-08-07 17:59 宋健安 阅读(2122) 评论(0) 推荐(1) 编辑
摘要: 这是一个组件: <template> <div> <div> <input type="checkbox" v-model="isCheckAll" @change="checkedAll"> 全选/取消全选 <input type="checkbox" v-model="isCheckInvers 阅读全文
posted @ 2018-07-17 13:54 宋健安 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 遇到这么一个问题: 把data中的某个对象赋值给一个变量,修改变量,会同时把data中的对象也一同修改,所以,这个赋值应该就是引用了地址,贴个代码 <script> export default { data () { return { productLists: [ { id: 1, produc 阅读全文
posted @ 2018-07-17 11:15 宋健安 阅读(6089) 评论(0) 推荐(0) 编辑
摘要: %{REQUEST_FILENAME} !-f 和!-d只对下一条RewriteRule起作用。再往下的RewriteRule不管用。 -f 表示为文件 -d 表示为目录 ! 表示非,取反的意思 RewriteCond %{REQUEST_FILENAME} !-f (如果不是文件,才会执行下一条R 阅读全文
posted @ 2018-07-15 21:33 宋健安 阅读(8700) 评论(1) 推荐(0) 编辑
摘要: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> # 打开Rerite功能 RewriteEngine On # Redirect Trailing Slashes If Not 阅读全文
posted @ 2018-07-15 21:24 宋健安 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 闭包实例 <?php /** * 一个具体项目实现的示例。 * * 在注册自动加载函数后,下面这行代码将引发程序 * 尝试从 /path/to/project/src/Baz/Qux.php * 加载 \Foo\Bar\Baz\Qux 类: * * new \Foo\Bar\Baz\Qux; * * 阅读全文
posted @ 2018-06-29 23:06 宋健安 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 无滚动条的情况下(页面宽高比可视区域小):$(document)和$(window)的width、height方法获取的值都是一样的,都是可视区域的宽高即$(document).width()==$(window).width() $(document).height()==$(window).he 阅读全文
posted @ 2018-06-29 23:02 宋健安 阅读(276) 评论(0) 推荐(0) 编辑