📜  unsplash api javascript 示例 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:20.679000             🧑  作者: Mango

代码示例1
// set image source to a random image
img.src = "https://source.unsplash.com/random";

// get a random image with the size 800x600
img.src = "https://source.unsplash.com/random/800x600"

// Apply search terms
img.src = "https://source.unsplash.com/1600x900/?nature,water"

// More info: https://source.unsplash.com