📜  react 中 srcset 的语法 - Javascript 代码示例

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

代码示例1
import nat1 from "./img/nat-1.jpg";
import nat1Large from "./img/nat-1-large.jpg";
import nat2 from "./img/nat-2.jpg";
import nat2Large from "./img/nat-2-large.jpg";
import nat3 from "./img/nat-3.jpg";
import nat3Large from "./img/nat-3-large.jpg";


  
Photo 1 Photo 2 Photo 3