Add: Resource timing

This commit is contained in:
surunzi
2016-05-23 13:17:12 +08:00
parent 59c4dbf6dc
commit b029cf9972
8 changed files with 156 additions and 105 deletions

10
eustia/getFileName.js Normal file
View File

@@ -0,0 +1,10 @@
_('last trim');
function exports(url)
{
var ret = last(url.split('/'));
if (ret.indexOf('?') > -1) ret = trim(ret.split('?')[0]);
return ret === '' ? 'unknown' : ret;
}