내 URL print.html 이름 = 벤틀리 + Foong & B = 1 &는 C = 2가져 오기 URL 삭제 +
<script type='text/javascript'>
var name = (location.search.split('name=')[1]||'').split('&')[0];
document.getElementById("print_to").innerHTML = name;
</script>
결과 : 벤틀리 + Foong
어떻게 내가 할 수있는 이 항목을 삭제하십시오 "+"
고맙습니다.
문자열을 매개 변수 값을 얻기 위해이 기능을 사용해보십시오 교체 할 것입니다. –