Edward
Edward
``` javascript function repast(guests, seatNum){ var result = []; var fullSeats = Math.floor(guests.length / seatNum); var remainGuests = guests.length % seatNum; function repastHelper(seatIndex){ if(seatIndex == fullSeats){ if(remainGuests > 0){ result.push(guests.slice(seatIndex*seatNum));...
``` /** * 返回一个新函数,该函数按定义的次数和间隔执行。 * @param {object} func 函数名称 * @param {number} times 次数 * @param {number} wait 间隔 * @return {function} */ function repeat (func, times, wait) { return...
@aui 原来如此啊~ 我还升级了老半天 grunt 插件
@aui 另外最新版本的 tmodjs 的配置选项是不是改了? grunt-tmod 一直报错,说"dest","filter" 等字段没有定义。这些字段在 wiki 里都没有提及。
I find out that perhaps it's the globalCompositeOperation attribute of canvas that makes the plugin not working on the Android 4.2. Some browsers don't fully support this attributes.