console.log(response)
하면 [0] 번째 ['url'] 찾을 수 있음
<script>
function q1() {
$.ajax({
type: "GET",
url: "https://api.thecatapi.com/v1/images/search",
data: {},
success: function (response) {
let a = response[0]['url']
$('#img-cat').attr('src',a)
}
})
}
</script>
img src 주소 변환하는거 배웠다...