2017-03-17 19 views

回答

2

var fromHDD=window.location.href.indexOf('file://')==0; 

var fromHDD=window.location.protocol=='file:';