0
를 사용하여 자바 스크립트에 여러 개의 매개 변수를 전달 나는이 사업부로 PHP 사이트를 다시로드 다음 자바 스크립트 :는 PHP 변수
if (boxes.length) {
$(".loadingItems").fadeIn(300);
// Change the name here as well
$(".indexMain").load('indexMain.php?'+this.name+'=' + boxes.join("+"),
function() {
$(".indexMain").fadeIn('slow');
$(".loadingItems").fadeOut(300);
});
내가 ... 같은 URL에 다른 매개 변수를 전달하는
싶습니다그래서 나는 그것을 다음과 같이해야한다고 생각했다. 이것이 올바른 방법일까요?
나는이 같은 PHP 변수 $category
를 사용하여 매개 변수 categ
를 전달하려고 :
if (boxes.length) {
$(".loadingItems").fadeIn(300);
// Change the name here as well
$(".indexMain").load('indexMain.php?categ=<?php echo $category;?>&'+this.name+'=' + boxes.join("+"),
function() {
$(".indexMain").fadeIn('slow');
$(".loadingItems").fadeOut(300);
});
괜찮아요. 렌더링 된 출력을 보여줄 수 있습니까? – Popnoodles