history.pushState:发送POST参数
我想传递一个POST参数,但找不到解决方案。我试过了,但没有成功history.pushState:发送POST参数,post,pushstate,Post,Pushstate,我想传递一个POST参数,但找不到解决方案。我试过了,但没有成功 url = '?page=test', title = 'Africa'; var options = { type: 'POST', data: {test:'1'} }; history.pushState({options: options, url: url, title: title }, title, url); 有人知道怎么做吗 多谢各位
url = '?page=test',
title = 'Africa';
var options = {
type: 'POST',
data: {test:'1'}
};
history.pushState({options: options, url: url, title: title }, title, url);
有人知道怎么做吗
多谢各位