我有一個問題。在json上工作。一切都很好,現在我開始認識到,如果我傳遞一個包含查詢字符串的URL不會這樣ajax數據參數如何通過json包括查詢字符串網址
在這裏工作JSON是一個JSON例子
var json='{"nodeDataArray": [
{"info":"this si child 1 from step 1", "link":"https://www.google.co.in?check=abc&"}
]}';
我與下面的AJAX方法發送這是代碼
$.ajax({
url: base_url + '/createflowchart/saveflowchart',
type: 'POST',
datatype: 'json',
data: "flowchartname=" + flowchartname + "&chartcode=" + chartcode + "&content=" + json,
beforeSend: function() {
$('#SaveButton').text('saving...');
// do some loading options
},
success: function(data) {
//code
},
complete: function() {
// success alerts
$('#SaveButton').text('Save');
},
error: function(data) {
alert("There may an error on uploading. Try again later");
},
});
現在的問題是
如果我通過JSON含有本類型的URL https://www.google.co.in?check=abc&check=2
它與分裂以此爲之後的參數但我不想要這個。 任何機構都知道如何才能實現這一目標。任何幫助將appriciated