你怎么發到IFRAME的?如何將數據發布到iframe?
3 回答
呼喚遠方
TA貢獻1856條經驗 獲得超11個贊
function postToIframe(data,url,target){
$('body').append('<form action="'+url+'" method="post" target="'+target+'" id="postToIframe"></form>');
$.each(data,function(n,v){
$('#postToIframe').append('<input type="hidden" name="'+n+'" value="'+v+'" />');
});
$('#postToIframe').submit().remove();
}data={last_name:'Smith',first_name:'John'}添加回答
舉報
0/150
提交
取消
