1.新建一个ZipArchive的对象,通过ZipArchive的对象处理zip文件 2.if中间的判断:如果对zip对象操作成功(在这里是指指定的zip文件不存在则创建一个),则会返回true 3.添加文件到指定目录下的zip,删除源文件 4.关闭zip 参考: https://my.oschin Read More
posted @ 2018-11-15 11:24 nice千千兔子 Views(707) Comments(0) Diggs(0)
1.题目描述: 将数组 arr 中的元素作为调用函数 fn 的参数 输入:function (greeting, name, punctuation) {return greeting + ', ' + name + (punctuation || '!');}, ['Hello', 'Ellie' Read More
posted @ 2018-09-07 15:22 nice千千兔子 Views(238) Comments(0) Diggs(0)
题目:实现一个打点计时器,要求1、从 start 到 end(包含 start 和 end),每隔 100 毫秒 console.log 一个数字,每次数字增幅为 12、返回的对象中需要包含一个 cancel 方法,用于停止定时操作3、第一个数需要立即输出 function count(start, Read More
posted @ 2018-09-05 14:53 nice千千兔子 Views(142) Comments(0) Diggs(0)
1.slice slice() 方法可从已有的数组中返回选定的元素。该方法并不会修改数组。 arrayObject.slice(start,end) 其中,start:必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,-1 指最后一个元素,-2 指倒数第二个元素,以 Read More
posted @ 2018-09-05 10:33 nice千千兔子 Views(110) Comments(0) Diggs(0)