script
javascript 내 함수 파라미터 전달
┌(  ̄∇ ̄)┘™
2019. 5. 24. 18:01
728x90
1. $("#selectbox").append(""+map.list[i]+"'");
2. $("#selectbox").append("+map.list[i]+"')'>"+map.list[i]+"'");
3. $("#selectbox").append(""+map.list[i]+"'");
출처: https://mingggu.tistory.com/93
동적 엘리먼트 생성 시 함수 인자 따옴표 (따옴표 안에 따옴표 안에 따옴표)
따옴표 안에 따옴표를 넣는게 헷갈릴 때가 많다. 기존에 하던 방식대로 했는데도 안될 때도 있고... 아래 세가지 방법중 하나가 걸리길..! 1. $("#selectbox").append("
728x90