"내보내기"URL을 클릭하면 다음과 같은 두 가지 이벤트가 발생합니다. 아무리 노력해도 "이봐, 넌 쉼표 나 세미콜론이 없어."라는 오류 메시지를받지 못하면 두 가지를 결합 할 수 없습니다. 아무도 두 가지를 결합 할 방법을 제안 할 수 있습니까? 아니면 지금 그대로 두어야합니까?URL을 클릭 할 때 두 가지 기능을 수행하는 방법
$('#export').click(function() {
$.each(gSelectedMeds,
function(intIndex, objValue) {
i=intIndex + 1;
if(i>1) {string+='&';}
string+='med'+i+'="'+objValue+'"';
}
)
string += "&count="+i;
});
$('#export').click(function(){
$.ajax({
url: 'ajax-exportMeds.php?'+string,
type: "GET",
dataType: "text",
success:
function(data){
$('#dialog_layer').dialog({
autoOpen: true,
bgiframe: true,
modal: true,
buttons: {
"OK":
function() {
$(this).dialog("close");
}
}
})
}
})
});
누락 된 쉼표보다 더 많은 문제가있는 것 같습니다. – scottm
무엇을 의미합니까? 쉼표가없는 부분은 어디입니까? – acedanger