我有一个formData
对象,想把它传递给loadOneTab()
例子:
var formData = Components.classes['@mozilla.org/files/formdata;1']
.createInstance(Components.interfaces.nsIDOMFormData);
formData.append('Content-Type', 'multipart/form-data');
formData.append('filename', '');
formData.append('image_url', URL);
我怎样才能将上面的对象传递给postData
window.gBrowser.loadOneTab('https://www.example.com/',
{inBackground: false, postData: postStream});