seaskymonster
seaskymonster
``` $scope.startHour=0; $scope.startMin=0; $scope.startSec=0; $scope.time_start =Date.now()-(($scope.startHour*3600000)+($scope.startMin*60000)+($scope.startSec*1000)); ``` in HTML: {{hours}}:{{minutes}}:{{seconds}}. You can set your start ticking time through make change of setHour, setMin, setSec.
@chrisn I already set that. It says the server doesn't support CROS. What I am curious is I can sent a http request to download the remote wav files. But...
_.has(obj, prop) 与 (prop in obj) 有什么区别呢?
闭包的运用简直是js最美的地方。
`Function.prototype.bind = Function.prototype.bind || function(context) { var that = this; return function() { // console.log(arguments); // console [3,4] if ie return that.apply(context, arguments); } }` 这个在你es5 bind 那篇文章里的code 很confusing,其实真正的实现方法是 `...
对于 1 和 "1" 无法分别这个问题: 其实可以在你的方法四上直接改 ` function unique(a) { var seen = {}; return a.filter(function(item){ return seen.hasOwnProperty(typeof(item)+item) ? false: (seen[typeof(item)+item] = true); }) } `
还是好好分析underscore 吧,这个对前端的理解,有点简单。