无法获得承诺结果

时间:2017-01-05 07:13:43

标签: javascript node.js promise ecmascript-6

我在这里使用validate.js 作为验证者。我希望通过承诺返回结果,但我无法从承诺中获得结果。请任何人帮我这个。这是我的代码。

<h3>Typical Way</h3>
<p>3 <code>&lt;img&gt;</code> and 3 <code>&lt;a&gt;</code>
</p>
<a href='http://imgh.us/Lenna.png'>
  <img src='http://imgh.us/Lenna.png'>
</a>
<a href='http://imgh.us/Lenna.png'>
  <img src='http://imgh.us/Lenna.png'>
</a>
<a href='http://imgh.us/Lenna.png'>
  <img src='http://imgh.us/Lenna.png'>
</a>


<h3>DRY way</h3>
<p>1 <code>&lt;img&gt;</code> and 1 <code>&lt;a&gt;</code>
</p>
<a href='http://imgh.us/Lenna.png'>
  <figure class='pic'></figure>
</a>

0 个答案:

没有答案
相关问题