0
var temp="path.png"
문자열 연결에는 속성으로 JQuery와 행동으로 JS var에 전달
$('#mapfoto').prepend('<img id="theImg" src="http://path.gr/"+temp />')
var temp="path.png"
문자열 연결에는 속성으로 JQuery와 행동으로 JS var에 전달
$('#mapfoto').prepend('<img id="theImg" src="http://path.gr/"+temp />')
를 사용하여 올바른 인용 배치 아래와 같이 나는 JQuery와 함수에 임시 VAR를 전달할 수있는 방법 :
$('#mapfoto').prepend('<img id="theImg" src="http://path.gr/' + temp + '" />');
$('#mapfoto').prepend('<img id="theImg" src="http://path.gr/' + temp + '" />');