as soon as I came into contact with promise, I wrote a demo by myself. Ask
.Why my then only executes once, and how to make it execute multiple times
var test = 0;
var promise = new Promise(resolve => {
$(".btn").on("click",()=>{
console.log(testPP +"----------")
resolve(test)
})
})
promise.then((data)=>{
console.log(data+"*********")
})