how to fetch a new image from api after one click vanilla.js

前端 未结 0 1868
不思量自难忘°
不思量自难忘° 2020-12-05 15:45

I\'m trying to figure out a better way to fetch a new image when clicking my button. here is my code:

function getPizzaHtml(pizza) {
    return `
    
相关标签:
回答
  • 消灭零回复
提交回复
热议问题