ujian fungsi(){
var myFirstPromise = new Promise(function(resolve, reject){ console.log('in promise') resolve("成功!"); //代码正常执行! }); return myFirstPromise
}
test().then(function(successMessage){
console.log("Yay! " + successMessage);
});
ujian fungsi(){
}
test().then(function(successMessage){
});