<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[EE First——模具行业从业者必备知识手册]]></title><description><![CDATA[<p dir="auto">&lt;h2&gt;EE First&lt;/h2&gt;</p>
<p dir="auto">&lt;p&gt;[![NPM version][npm-image&rsqb;&rsqb;[npm-url]&lt;/p&gt;<br />
&lt;p&gt;[![Build status][travis-image&rsqb;&rsqb;[travis-url]&lt;/p&gt;<br />
&lt;p&gt;[![Test coverage][coveralls-image&rsqb;&rsqb;[coveralls-url]&lt;/p&gt;<br />
&lt;p&gt;[![License][license-image&rsqb;&rsqb;[license-url]&lt;/p&gt;<br />
&lt;p&gt;[![Downloads][downloads-image&rsqb;&rsqb;[downloads-url]&lt;/p&gt;<br />
&lt;p&gt;[![Gittip][gittip-image&rsqb;&rsqb;[gittip-url]&lt;/p&gt;</p>
<p dir="auto">&lt;p&gt;Get the first event in a set of event emitters and event pairs,&lt;/p&gt;<br />
&lt;p&gt;then clean up after itself.&lt;/p&gt;</p>
<p dir="auto">&lt;h3&gt;Install&lt;/h3&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
$ npm install ee-first<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h3&gt;API&lt;/h3&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
var first = require('ee-first')<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;h4&gt;first(arr, listener)&lt;/h4&gt;</p>
<p dir="auto">&lt;p&gt;Invoke &lt;code&gt;listener&lt;/code&gt; on the first event from the list specified in &lt;code&gt;arr&lt;/code&gt;. &lt;code&gt;arr&lt;/code&gt; is&lt;/p&gt;<br />
&lt;p&gt;an array of arrays, with each array in the format &lt;code&gt;[ee, ...event]&lt;/code&gt;. &lt;code&gt;listener&lt;/code&gt;&lt;/p&gt;<br />
&lt;p&gt;will be called only once, the first time any of the given events are emitted. If&lt;/p&gt;<br />
&lt;p&gt;&lt;code&gt;error&lt;/code&gt; is one of the listened events, then if that fires first, the &lt;code&gt;listener&lt;/code&gt;&lt;/p&gt;<br />
&lt;p&gt;will be given the &lt;code&gt;err&lt;/code&gt; argument.&lt;/p&gt;</p>
<p dir="auto">&lt;p&gt;The &lt;code&gt;listener&lt;/code&gt; is invoked as &lt;code&gt;listener(err, ee, event, args)&lt;/code&gt;, where &lt;code&gt;err&lt;/code&gt; is the&lt;/p&gt;<br />
&lt;p&gt;first argument emitted from an &lt;code&gt;error&lt;/code&gt; event, if applicable; &lt;code&gt;ee&lt;/code&gt; is the event&lt;/p&gt;<br />
&lt;p&gt;emitter that fired; &lt;code&gt;event&lt;/code&gt; is the string event name that fired; and &lt;code&gt;args&lt;/code&gt; is an&lt;/p&gt;<br />
&lt;p&gt;array of the arguments that were emitted on the event.&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
var ee1 = new EventEmitter()<br />
var ee2 = new EventEmitter()</p>
<p dir="auto">first([<br />
[ee1, 'close', 'end', 'error'],<br />
[ee2, 'error']<br />
], function (err, ee, event, args) {<br />
// listener invoked<br />
})<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;p&gt;#### .cancel()&lt;/p&gt;</p>
<p dir="auto">&lt;p&gt;The group of listeners can be cancelled before being invoked and have all the event&lt;/p&gt;<br />
&lt;p&gt;listeners removed from the underlying event emitters.&lt;/p&gt;</p>
<p dir="auto">&lt;pre&gt;&lt;code&gt;<br />
var thunk = first([<br />
[ee1, 'close', 'end', 'error'],<br />
[ee2, 'error']<br />
], function (err, ee, event, args) {<br />
// listener invoked<br />
})</p>
<p dir="auto">// cancel and clean up<br />
thunk.cancel()<br />
&lt;/code&gt;&lt;/pre&gt;</p>
<p dir="auto">&lt;p&gt;[npm-image]: <a href="https://img.shields.io/npm/v/ee-first.svg?style=flat-square" rel="nofollow ugc">https://img.shields.io/npm/v/ee-first.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[npm-url]: <a href="https://npmjs.org/package/ee-first" rel="nofollow ugc">https://npmjs.org/package/ee-first</a>&lt;/p&gt;<br />
&lt;p&gt;[github-tag]: <a href="http://img.shields.io/github/tag/jonathanong/ee-first.svg?style=flat-square" rel="nofollow ugc">http://img.shields.io/github/tag/jonathanong/ee-first.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[github-url]: <a href="https://github.com/jonathanong/ee-first/tags" rel="nofollow ugc">https://github.com/jonathanong/ee-first/tags</a>&lt;/p&gt;<br />
&lt;p&gt;[travis-image]: <a href="https://img.shields.io/travis/jonathanong/ee-first.svg?style=flat-square" rel="nofollow ugc">https://img.shields.io/travis/jonathanong/ee-first.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[travis-url]: <a href="https://travis-ci.org/jonathanong/ee-first" rel="nofollow ugc">https://travis-ci.org/jonathanong/ee-first</a>&lt;/p&gt;<br />
&lt;p&gt;[coveralls-image]: <a href="https://img.shields.io/coveralls/jonathanong/ee-first.svg?style=flat-square" rel="nofollow ugc">https://img.shields.io/coveralls/jonathanong/ee-first.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[coveralls-url]: <a href="https://coveralls.io/r/jonathanong/ee-first?branch=master" rel="nofollow ugc">https://coveralls.io/r/jonathanong/ee-first?branch=master</a>&lt;/p&gt;<br />
&lt;p&gt;[license-image]: <a href="http://img.shields.io/npm/l/ee-first.svg?style=flat-square" rel="nofollow ugc">http://img.shields.io/npm/l/ee-first.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[license-url]: LICENSE.md&lt;/p&gt;<br />
&lt;p&gt;[downloads-image]: <a href="http://img.shields.io/npm/dm/ee-first.svg?style=flat-square" rel="nofollow ugc">http://img.shields.io/npm/dm/ee-first.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[downloads-url]: <a href="https://npmjs.org/package/ee-first" rel="nofollow ugc">https://npmjs.org/package/ee-first</a>&lt;/p&gt;<br />
&lt;p&gt;[gittip-image]: <a href="https://img.shields.io/gittip/jonathanong.svg?style=flat-square" rel="nofollow ugc">https://img.shields.io/gittip/jonathanong.svg?style=flat-square</a>&lt;/p&gt;<br />
&lt;p&gt;[gittip-url]: <a href="https://www.gittip.com/jonathanong/" rel="nofollow ugc">https://www.gittip.com/jonathanong/</a>&lt;/p&gt;</p>
<p dir="auto">&lt;hr&gt;</p>
<p dir="auto">&lt;p&gt;本文由模极社发布&lt;/p&gt;</p>
<p dir="auto">&lt;h4&gt;<img src="https://forum.mj7.cn/assets/plugins/nodebb-plugin-emoji/emoji/android/1f4cb.png?v=k0o2a4s5i30" class="not-responsive emoji emoji-android emoji--clipboard" title=":clipboard:" alt="📋" /> 内容概览&lt;/h4&gt;</p>
<p dir="auto">&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;分类&lt;/td&gt;&lt;td&gt;要点&lt;/td&gt;&lt;td&gt;建议/说明&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;核心概念&lt;/td&gt;&lt;td&gt;EE First&lt;/td&gt;&lt;td&gt;详见正文&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;操作步骤&lt;/td&gt;&lt;td&gt;EE First&lt;/td&gt;&lt;td&gt;详见正文&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;注意事项&lt;/td&gt;&lt;td&gt;EE First&lt;/td&gt;&lt;td&gt;详见正文&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;适用场景&lt;/td&gt;&lt;td&gt;EE First&lt;/td&gt;&lt;td&gt;详见正文&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;常见问题&lt;/td&gt;&lt;td&gt;EE First&lt;/td&gt;&lt;td&gt;详见正文&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;</p>
<p dir="auto">&lt;hr&gt;<br />
&lt;h4&gt;<img src="https://forum.mj7.cn/assets/plugins/nodebb-plugin-emoji/emoji/android/1f517.png?v=k0o2a4s5i30" class="not-responsive emoji emoji-android emoji--link" title=":link:" alt="🔗" /> 你可能还感兴趣&lt;/h4&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href="/t/4239/4239"&gt;传递模塑成型（RTM）：工艺原理、分类与应用领域&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="/t/3617/3617"&gt;震界自动化压铸输送带&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="/t/4318/4318"&gt;deepmerge&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p dir="auto">&lt;hr&gt;<br />
&lt;p&gt;&lt;strong&gt;相关推荐：&lt;/strong&gt;&lt;/p&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href="<a href="https://www.mj7.cn/t/4836-4836" rel="nofollow ugc">https://www.mj7.cn/t/4836-4836</a>"&gt;北京模具产业 — 科技研发驱动型模具基地&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="<a href="https://www.mj7.cn/t/4835-4835" rel="nofollow ugc">https://www.mj7.cn/t/4835-4835</a>"&gt;上海模具产业 — 高端精密模具研发中心&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="<a href="https://www.mj7.cn/t/4834-4834" rel="nofollow ugc">https://www.mj7.cn/t/4834-4834</a>"&gt;产业集群与模具产业发展的关系&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p dir="auto">&lt;hr&gt;<br />
&lt;p&gt;踩过坑的来评论区说说。&lt;/p&gt;</p>
]]></description><link>https://forum.mj7.cn/topic/7199/ee-first-模具行业从业者必备知识手册</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 09:34:20 GMT</lastBuildDate><atom:link href="https://forum.mj7.cn/topic/7199.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Apr 2026 21:53:09 GMT</pubDate><ttl>60</ttl></channel></rss>