2013-08-15 4 views

답변

2

당신이

jQuery('#main-img-cont').prepend("<img src='"+imageOne+"' />"); 
2

당신은 당신의 문자열 연결이 누락 :

jQuery('#main-img-cont').prepend('<img src="' + imageOne + '" />'); 
1

을 당신은 구문 오류가 있습니다. 사용

jQuery('#main-img-cont').prepend('<img src="'+imageOne+'" />'); 

그러나이 종류의 오류는 using the console에 의해 SO없이 감지되어야합니다. 변수는

+0

왜 downvote? –

관련 문제