Fix: Uncaught promise error #29

This commit is contained in:
surunzi
2017-06-28 20:26:33 +08:00
parent e578c66f82
commit 7eaf017efd
3 changed files with 23 additions and 1 deletions

View File

@@ -18,6 +18,9 @@
<li>
<a href="#" id="plugin">Plugin</a>
</li>
<li>
<a href="#" id="issue29">#29</a>
</li>
</ul>
</nav>
<script>
@@ -56,6 +59,16 @@
};
});
});
addClickEvent('issue29', function ()
{
new Promise(function (resolve, reject)
{
resolve();
}).then(function (res)
{
var a = res.a;
})
});
</script>
<script>boot();</script>
</body>