初始化fy
This commit is contained in:
13
uni_modules/UniDevTools/node_modules/licia/fileUrl.js
generated
vendored
Normal file
13
uni_modules/UniDevTools/node_modules/licia/fileUrl.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
var normalizePath = require('./normalizePath');
|
||||
exports = function(path) {
|
||||
path = normalizePath(path);
|
||||
if (path[0] !== '/') {
|
||||
path = '/'.concat(path);
|
||||
}
|
||||
return encodeURI('file://'.concat(path)).replace(
|
||||
/[?#]/g,
|
||||
encodeURIComponent
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = exports;
|
||||
Reference in New Issue
Block a user