Source-map

码农软件 · 软件分类 · 地图相关 · 2019-07-31 21:13:12

软件介绍

Source-map 是一个能够生成和使用源地图格式的开发包。

这个开发包是使用异步模块定义格式编写的,工作在下面的环境中:

  • 现代浏览器支持 ECMAScript 5 

  • 内置火狐作为 JSM 文件(after the build)

  • 需要 NodeJS 0.8.X 或更高版本

使用源地图(Consuming a source map)

var rawSourceMap = {
  version: 3,
  file: 'min.js',
  names: ['bar', 'baz', 'n'],
  sources: ['one.js', 'two.js'],
  sourceRoot: 'http://example.com/www/js/',
  mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA'};var smc = new SourceMapConsumer(rawSourceMap);console.log(smc.sources);// [ 'http://example.com/www/js/one.js',//   'http://example.com/www/js/two.js' ]console.log(smc.originalPositionFor({
  line: 2,
  column: 28}));// { source: 'http://example.com/www/js/two.js',//   line: 2,//   column: 10,//   name: 'n' }console.log(smc.generatedPositionFor({
  source: 'http://example.com/www/js/two.js',
  line: 2,
  column: 10}));// { line: 2, column: 28 }smc.eachMapping(function (m) {  // ...});


本文地址:https://codercto.com/soft/d/11369.html

Learn Python 3 the Hard Way

Learn Python 3 the Hard Way

Zed A. Shaw / Addison / 2017-7-7 / USD 30.74

You Will Learn Python 3! Zed Shaw has perfected the world’s best system for learning Python 3. Follow it and you will succeed—just like the millions of beginners Zed has taught to date! You bring t......一起来看看 《Learn Python 3 the Hard Way》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具