标签:tmp rmi 利用 window cti eth tool get append
function formAppendSubmit(){ var myform=$(‘#newArticleForm‘); //得到form对象 var tmpInput=$("<input type=‘text‘ name=‘blogArticleForm.articleContent‘/>"); tmpInput.attr("value", myUeditor.window.getContentInsideBody()); myform.append(tmpInput); myform.submit(); }
function(event){ form = $("<form></form>") form.attr(‘action‘,action) form.attr(‘method‘,‘post‘) input1 = $("<input type=‘hidden‘ name=‘input1‘ />") input1.attr(‘value‘,‘input1 value‘) input2 = $("<input type=‘text‘ name=‘textinput‘ value=‘text input‘ />") form.append(input1) form.append(input2) form.appendTo("body") form.css(‘display‘,‘none‘) form.submit() }
$.ajax({ type: "POST", url: www.baidu.com, data: $(‘#formId‘).serialize(), success: function (data) { }, error: function(data) { } });
$.ajax({ type:"post", url: "login.action", data: "name="+user + "&chatRoomId="+chatRoomId, success: function(){ }, error: function(){ } });
function UpladFile(fileUploadId, taskid) {
var fileObj = document.getElementById(fileUploadId).files[0]; // 获取文件对象 // FormData 对象 var form_data = new FormData(); //form.append("author", "hooyes"); // 可以增加表单数据 form_data.append("taskid", taskid); form_data.append("file", fileObj); // 文件对象
$.ajax({ type: "POST", dataType: "html", url: www.baidu.com, data: form_data, success: function (data) { }, error: function(data) { } });
}
标签:tmp rmi 利用 window cti eth tool get append
原文地址:https://www.cnblogs.com/Tohold/p/10277397.html