Site updated: 2022-09-22 10:39:18
This commit is contained in:
26
atom.xml
26
atom.xml
@ -8,7 +8,7 @@
|
||||
<author>
|
||||
<name>Hito li</name>
|
||||
</author>
|
||||
<updated>2022-09-21T01:46:00.000Z</updated>
|
||||
<updated>2022-09-22T02:30:00.000Z</updated>
|
||||
<category term="hito" />
|
||||
<category term="無言" />
|
||||
<category term="博客" />
|
||||
@ -16,6 +16,30 @@
|
||||
<category term="笔记" />
|
||||
<category term="心得体会" />
|
||||
<category term="踩坑" />
|
||||
<entry>
|
||||
<id>https://blog.jingxiyuan.cn/2022/09/22/protobuf%E7%94%9F%E6%88%90js%E6%96%87%E4%BB%B6/</id>
|
||||
<title>protobuf生成js文件</title>
|
||||
<link rel="alternate" href="https://blog.jingxiyuan.cn/2022/09/22/protobuf%E7%94%9F%E6%88%90js%E6%96%87%E4%BB%B6/"/>
|
||||
<content type="html"><h1 id="下载工具"><a class="anchor" href="#下载工具">#</a> 下载工具</h1>
|
||||
<p><span class="exturl" data-url="aHR0cHM6Ly92ZXJzYXdlYi5kbC5zb3VyY2Vmb3JnZS5uZXQvcHJvamVjdC9wcm90b2NvbC1idWZmZXJzLm1pcnJvci92My4xOS41L3Byb3RvYy0zLjE5LjUtd2luNjQuemlw">protoc-3.19.5-win64.zip</span></p>
|
||||
<h1 id="生成js文件"><a class="anchor" href="#生成js文件">#</a> 生成 js 文件</h1>
|
||||
<ol>
|
||||
<li>
|
||||
<p>把 xxx.proto 文件拷贝到解压的 protoc-3.19.5-win64\bin 目录下</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>cmd 到相同的 bin 目录下</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>执行 protoc.exe --js_out=import_style=commonjs,binary:. ./xxx.proto 命令,就会在 bin 目录下生成 xxx_pb.js 文件</p>
|
||||
</li>
|
||||
</ol>
|
||||
</content>
|
||||
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
|
||||
<category term="protobuf" scheme="https://blog.jingxiyuan.cn/tags/protobuf/" />
|
||||
<category term="js" scheme="https://blog.jingxiyuan.cn/tags/js/" />
|
||||
<updated>2022-09-22T02:30:00.000Z</updated>
|
||||
</entry>
|
||||
<entry>
|
||||
<id>https://blog.jingxiyuan.cn/2022/09/21/%E8%AE%B0%E4%B8%80%E6%AC%A1netty-socket-io%E6%9C%8D%E5%8A%A1%E7%AB%AF%E8%BF%9E%E6%8E%A5%E4%B8%8D%E4%B8%8A%E7%9A%84%E9%97%AE%E9%A2%98/</id>
|
||||
<title>记一次netty-socketio服务端连接不上的问题</title>
|
||||
|
Reference in New Issue
Block a user