/*
是否可以将第一个块变成第二个块?我用 requestAnimationFrame 做了类似的事情,但由于点它似乎在这里不起作用。
*/
////////////////////////////////////////////////////////////////////////////////////////
window.performance = window.performance || {};
window.performance.now = (function()
{
return window.performance.now ||
window.performance.webkitNow ||
window.performance.msNow ||
window.performance.mozNow ||
window.performance.oNow || function() { return new Date().getTime(); };
})();
var PeRfOrMaNcE = window.performance;
console.log(PeRfOrMaNcE.now());
////////////////////////////////////////////////////////////////////////////////////////
var PeRfOrMaNcE = (function()
{
return window.performance.now ||
window.performance.webkitNow ||
window.performance.msNow ||
window.performance.mozNow ||
window.performance.oNow || function() { return new Date().getTime(); };
})();
console.log(PeRfOrMaNcE());