Webpack 的插件机制 - Tapable

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/95\/95ea75bbba67a6dbe4d9e5ca30e96f5c.webp","alt":"Image","title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"前言"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"用了这么久的 Webpack,你一定对它的生态重要组成部分"},{"type":"codeinline","content":[{"type":"text","text":"loader"}]},{"type":"text","text":"、"},{"type":"codeinline","content":[{"type":"text","text":"plugin"}]},{"type":"text","text":"很好奇吧,你是否尝试过编写自己的插件呢,是否了解过 Webpack 的插件机制呢,什么?没有,那还不赶紧上车学一波!"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"1、tapable"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Webpack 就像一条生产线,要经过一系列处理流程后才能将源文件转换成输出结果。这条生产线上的每个处理流程的职责都是单一的,多个流程之间有存在依赖关系,只有完成当前处理后才能交给下一个流程去处理。插件就像是一个插入到生产线中的一个功能,在特定的时机对生产线上的资源做处理。Webpack 通过 Tapable 来组织这条复杂的生产线。Webpack 在运行过程中会广播事件,插件只需要监听它所关心的事件,就能加入到这条生产线中,去改变生产线的运作。Webpack 的事件流机制保证了插件的有序性,使得整个系统扩展性很好。——「深入浅出 Webpack」"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"作为 Webpack 的核心库,"},{"type":"codeinline","content":[{"type":"text","text":"tabpable"}]},{"type":"text","text":"承包了 Webpack 最重要的事件工作机制,包括 Webpack 源码中高频的两大对象("},{"type":"codeinline","content":[{"type":"text","text":"compiler"}]},{"type":"text","text":"、"},{"type":"codeinline","content":[{"type":"text","text":"compilation"}]},{"type":"text","text":")都是继承自"},{"type":"codeinline","content":[{"type":"text","text":"Tapable"}]},{"type":"text","text":"类的对象,这些对象都拥有"},{"type":"codeinline","content":[{"type":"text","text":"Tapable"}]},{"type":"text","text":"的注册和调用插件的功能,并向外暴露出各自的执行顺序以及"},{"type":"codeinline","content":[{"type":"text","text":"hook"}]},{"type":"text","text":"类型,详情可见文档"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"2、tapable 的钩子"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"const {\n SyncHook,\n SyncBailHook,\n SyncWaterfallHook,\n SyncLoopHook,\n AsyncParallelHook,\n AsyncParallelBailHook,\n AsyncSeriesHook,\n AsyncSeriesBailHook,\n AsyncSeriesWaterfallHook\n } = require(\"tapable\");\n"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"上面是官方文档给出的 9 种钩子的类型,我们看命名就能大致推测他们的类型和区别,分成同步、异步,瀑布流、串行、并行类型、循环类型等等,钩子的目的是为了显式地声明,触发监听事件时(call)传入的参数,以及订阅该钩子的 callback 函数所接受到的参数,举个最简单的🌰"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"const sync = new SyncHook(['arg']) \/\/ 'arg' 为参数占位符\nsync.tap('Test', (arg1, arg2) => {\n console.log(arg1, arg2) \/\/ a,undefined\n})\nsync.call('a', '2')"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"上述代码定义了一个同步串行钩子,并声明了接收的参数的个数,可以通过"},{"type":"codeinline","content":[{"type":"text","text":"hook"}]},{"type":"text","text":"实例对象("},{"type":"codeinline","content":[{"type":"text","text":"SyncHook"}]},{"type":"text","text":"本身也是继承自"},{"type":"codeinline","content":[{"type":"text","text":"Hook"}]},{"type":"text","text":"类的)的"},{"type":"codeinline","content":[{"type":"text","text":"tap"}]},{"type":"text","text":"方法订阅事件,然后利用"},{"type":"codeinline","content":[{"type":"text","text":"call"}]},{"type":"text","text":"函数触发订阅事件,执行 callback 函数,值得注意的是 call 传入参数的数量需要与实例化时传递给钩子类构造函数的数组长度保持一致,否则,即使传入了多个,也只能接收到实例化时定义的参数个数。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"embedcomp","attrs":{"type":"table","data":{"content":"
序号钩子名称执行方式使用要点
1SyncHook同步串行不关心监听函数的返回值
2SyncBailHook同步串行只要监听函数中有一个函数的返回值不为 null,则跳过剩余逻辑
3SyncWaterfallHook同步串行上一个监听函数的返回值将作为参数传递给下一个监听函数
4SyncLoopHook同步串行当监听函数被触发的时候,如果该监听函数返回 true 时则这个监听函数会反复执行,如果返回 undefined 则表示退出循环
5AsyncParallelHook异步并行不关心监听函数的返回值
6AsyncParallelBailHook异步并行只要监听函数的返回值不为 null,就会忽略后面的监听函数执行,直接跳跃到 callAsync 等触发函数绑定的回调函数,然后执行这个被绑定的回调函数
7AsyncSeriesHook异步串行不关心 callback()的参数
8AsyncSeriesBailHook异步串行callback()的参数不为 null,就会直接执行 callAsync 等触发函数绑定的回调函数
9AsyncSeriesWaterfallHook异步串行上一个监听函数的中的 callback(err, data)的第二个参数,可以作为下一个监听函数的参数"}}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"上述表格罗列了所有 hook 的使用方式和要点。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"3、注册事件回调"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"注册事件回调有三个方法:"},{"type":"codeinline","content":[{"type":"text","text":"tap"}]},{"type":"text","text":"、"},{"type":"codeinline","content":[{"type":"text","text":"tapAsync"}]},{"type":"text","text":" 和 "},{"type":"codeinline","content":[{"type":"text","text":"tapPromise"}]},{"type":"text","text":",其中 "},{"type":"codeinline","content":[{"type":"text","text":"tapAsync"}]},{"type":"text","text":" 和 "},{"type":"codeinline","content":[{"type":"text","text":"tapPromise"}]},{"type":"text","text":" 不能用于 "},{"type":"codeinline","content":[{"type":"text","text":"Sync"}]},{"type":"text","text":" 开头的钩子类,强行使用会报错。"},{"type":"codeinline","content":[{"type":"text","text":"tap"}]},{"type":"text","text":"的使用方式在上文已经展示过了,就用官方文档的例子展示下"},{"type":"codeinline","content":[{"type":"text","text":"tapAsync"}]},{"type":"text","text":"的使用方式,相比于"},{"type":"codeinline","content":[{"type":"text","text":"tap"}]},{"type":"text","text":","},{"type":"codeinline","content":[{"type":"text","text":"tapAsync"}]},{"type":"text","text":"需要执行 callback 函数才能确保流程会走到下一个插件中去。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"myCar.hooks.calculateRoutes.tapAsync(\"BingMapsPlugin\", (source, target, routesList, callback) => {\n bing.findRoute(source, target, (err, route) => {\n if(err) return callback(err);\n routesList.add(route);\n \/\/ call the callback\n callback();\n });\n});"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"4、触发事件"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"触发事件的三个方法是与注册事件回调的方法一一对应的,这点从方法的名字上也能看出来:"},{"type":"codeinline","content":[{"type":"text","text":"call"}]},{"type":"text","text":" 对应 "},{"type":"codeinline","content":[{"type":"text","text":"tap"}]},{"type":"text","text":"、"},{"type":"codeinline","content":[{"type":"text","text":"callAsync"}]},{"type":"text","text":" 对应 "},{"type":"codeinline","content":[{"type":"text","text":"tapAsync"}]},{"type":"text","text":" 和 "},{"type":"codeinline","content":[{"type":"text","text":"promise"}]},{"type":"text","text":" 对应 "},{"type":"codeinline","content":[{"type":"text","text":"tapPromise"}]},{"type":"text","text":"。一般来说,我们注册事件回调时用了什么方法,触发时最好也使用对应的方法。同样需要注意的是 callAsync 有个 callback 函数,在逻辑完毕时需要执行,一些具体用法类似于上面的注册事件类似,就不一一展开了。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"5、了解机制"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"那么在 Webpack 中到底如何使用 tapable 调用这些 plugin 呢?"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"我们首先来看官网给出的编写一个 plugin 的示例"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"class HelloWorldPlugin {\n  apply(compiler) {\n    compiler.hooks.done.tap('Hello World Plugin', (\n      compilation \/* compilation is passed as an argument when done hook is tapped.  *\/\n    ) => {\n      console.log('Hello World!');\n    });\n  }\n}\n\nmodule.exports = HelloWorldPlugin;\n"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"上述代码块编写了一个叫 HelloWorldPlugin 的类,它提供了一个叫"},{"type":"codeinline","content":[{"type":"text","text":"apply"}]},{"type":"text","text":"的方法,在该方法中我们可以从外部获取到 Webpack 执行全过程中单一的"},{"type":"codeinline","content":[{"type":"text","text":"compiler"}]},{"type":"text","text":"实例,通过"},{"type":"codeinline","content":[{"type":"text","text":"compiler"}]},{"type":"text","text":"实例,我们可以在 Webpack 的生命周期的"},{"type":"codeinline","content":[{"type":"text","text":"done"}]},{"type":"text","text":"节点(也就是上面我们提到的"},{"type":"codeinline","content":[{"type":"text","text":"hook"}]},{"type":"text","text":")tap 一个监听事件,也就是说当 Webpack 全部流程执行完毕时,监听事件将会被触发,同时"},{"type":"codeinline","content":[{"type":"text","text":"stat"}]},{"type":"text","text":"统计信息会被传入到监听事件中,在事件中,我们就可以通过"},{"type":"codeinline","content":[{"type":"text","text":"stat"}]},{"type":"text","text":"做一系列我们想要做的数据分析。一般来说,使用一个 Webpack 插件,需要在 Webpack 配置文件中导入("},{"type":"codeinline","content":[{"type":"text","text":"import"}]},{"type":"text","text":")插件的类,new 一个实例,like this:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"\/\/ Webpack.config.js\nvar HelloWorldPlugin = require('hello-world');\n\nmodule.exports = {\n \/\/ ... configuration settings here ...\n plugins: [new HelloWorldPlugin({ options: true })]\n};"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这里聪明的你一定想到了 Webpack 应该是读取了这份配置文件后获得了"},{"type":"codeinline","content":[{"type":"text","text":"HelloWorldPlugin"}]},{"type":"text","text":"实例,并调用了实例的"},{"type":"codeinline","content":[{"type":"text","text":"apply"}]},{"type":"text","text":"方法,在"},{"type":"codeinline","content":[{"type":"text","text":"done"}]},{"type":"text","text":"节点上添加了监听事件!没错,让我们来追溯下 Webpack 的源码部分,在 Webpack 项目的"},{"type":"codeinline","content":[{"type":"text","text":"lib\/Webpack.js"}]},{"type":"text","text":"文件中,我们可以看到"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"if (options.plugins && Array.isArray(options.plugins)) {\n    for (const plugin of options.plugins) {\n  if (typeof plugin === \"function\") {\n   plugin.call(compiler, compiler);\n  } else {\n   plugin.apply(compiler);\n  }\n }\n}\n"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这段代码中"},{"type":"codeinline","content":[{"type":"text","text":"options"}]},{"type":"text","text":"就是指配置文件导出的整个对象,这里可以看到 Webpack 循环遍历了一遍 plugins,并分别调用了他们的 apply 方法,当然如果 plugin 是"},{"type":"codeinline","content":[{"type":"text","text":"function"}]},{"type":"text","text":"类型,就直接用"},{"type":"codeinline","content":[{"type":"text","text":"call"}]},{"type":"text","text":"来执行,这也就是我上文提到的一般来说的例外,如果你的插件逻辑很简单,你可以直接在配置文件里写一个"},{"type":"codeinline","content":[{"type":"text","text":"function"}]},{"type":"text","text":",去执行你的逻辑,而不必啰嗦的写一个类或者用更纯粹的"},{"type":"codeinline","content":[{"type":"text","text":"prototype"}]},{"type":"text","text":"去定义类的方法。到这里为止,我们已经了解了插件中的监听事件是如何注册到 Webpack 的"},{"type":"codeinline","content":[{"type":"text","text":"compile"}]},{"type":"text","text":"、"},{"type":"codeinline","content":[{"type":"text","text":"compilation"}]},{"type":"text","text":"("},{"type":"codeinline","content":[{"type":"text","text":"tapable"}]},{"type":"text","text":"类)上去的,那监听事件是如何、何时被触发的呢,理论上应该是先注册完毕,后触发,这样监听事件才有意义,我们接着发现,在"},{"type":"codeinline","content":[{"type":"text","text":"lib\/Compiler.js"}]},{"type":"text","text":"中的"},{"type":"codeinline","content":[{"type":"text","text":"Compiler"}]},{"type":"text","text":"类的"},{"type":"codeinline","content":[{"type":"text","text":"run"}]},{"type":"text","text":"函数里有这样一段代码"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"typescript"},"content":[{"type":"text","text":"const onCompiled = (err, compilation) => {\n if (err) return finalCallback(err);\n\n if (this.hooks.shouldEmit.call(compilation) === false) {\n ...\n this.hooks.done.callAsync(stats, err => {\n if (err) return finalCallback(err);\n return finalCallback(null, stats);\n });\n return;\n }\n\n this.emitAssets(compilation, err => {\n if (err) return finalCallback(err);\n\n if (compilation.hooks.needAdditionalPass.call()) {\n ...\n this.hooks.done.callAsync(stats, err => {\n ...\n });\n return;\n }\n\n this.emitRecords(err => {\n if (err) return finalCallback(err);\n\n ...\n this.hooks.done.callAsync(stats, err => {\n if (err) return finalCallback(err);\n return finalCallback(null, stats);\n });\n });\n });\n};\n...\n this.compile(onCompiled);"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"回调函数"},{"type":"codeinline","content":[{"type":"text","text":"onCompiled"}]},{"type":"text","text":"会在"},{"type":"codeinline","content":[{"type":"text","text":"compile"}]},{"type":"text","text":"过程结束时被调用,无论走到哪个 if 逻辑中,"},{"type":"codeinline","content":[{"type":"text","text":"this.hooks.done.callAsync"}]},{"type":"text","text":"都会被执行,也就是说在 done 节点上注册的监听事件会按照顺序依次被触发执行。接着我们再向上追溯,包裹了"},{"type":"codeinline","content":[{"type":"text","text":"onCompiled"}]},{"type":"text","text":"函数的"},{"type":"codeinline","content":[{"type":"text","text":"run"}]},{"type":"text","text":"函数是在"},{"type":"codeinline","content":[{"type":"text","text":"lib\/Webpack.js"}]},{"type":"text","text":"中被执行的"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"codeblock","attrs":{"lang":"javascript"},"content":[{"type":"text","text":"if (Array.isArray(options)) {\n    ...\n} else if (typeof options === \"object\") {\n    ...\n compiler = new Compiler(options.context);\n compiler.options = options;\n if (options.plugins && Array.isArray(options.plugins)) {\n  for (const plugin of options.plugins) {\n   if (typeof plugin === \"function\") {\n    plugin.call(compiler, compiler);\n   } else {\n    plugin.apply(compiler);\n   }\n  }\n }\n} else {\n ...\n}\nif (callback) {\n ...\n compiler.run(callback);\n}\n"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"刚好在"},{"type":"codeinline","content":[{"type":"text","text":"plugin.apply()"}]},{"type":"text","text":"的后面,所以是符合先注册监听事件,再触发的逻辑顺序的。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/c4\/c4c2beb86e9d99117a8be6b2330436db.webp","alt":"Image","title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"是不是已经有点乱了,来来来,我们用流程图简单捋一下。"}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"插件的注册执行流程图示"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/be\/beedda50afcc591dace5faed127b72b4.png","alt":"Image","title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"6、总结"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"tapable 作为 Webpack 的核心库,承接了 Webpack 最重要的事件流的运转,它巧妙的钩子设计很好的将实现与流程解耦开来,真正实现了插拔式的功能模块,在 Webpack 中最核心的负责编译的 Compiler 和负责创建的 bundles 的 Compilation 都是 Tapable 的实例,可以说想要真正读懂 Webpack,tapable 的知识储备是必不可少的,它的一些设计思想也是很值得我们借鉴的,本文只是对 tapable 的一些 api 以及 Webpack 如何使用 tapable 串起了整个插件流工作机制做了介绍。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"horizontalrule"},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"头图:Unsplash"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"作者:丁楠"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"原文:https:\/\/mp.weixin.qq.com\/s\/qWq46-7EJb0Byo1H3SDHCg"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"原文:Webpack 的插件机制 - Tapable"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"来源:微医大前端技术 - 微信公众号 [ID:wed_fed]"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"转载:著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。"}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章