============================
全局安装
npm install fis-parser-w3c-sm -g
fis.config.merge({
modules: { parser: { js: 'w3c-sm' } },
settings: {
parser: {
'w3c-sm': {
patterns: [{
pattern: 'navigator.geolocation.getCurrentPosition',
replacement: 'sm.uc_getCurrentPosition'
}],
exclude: null
}
}
}
});