$.ajax({
type: "POST",
url: "ygdwController.do?getonygdw",
data : "id=" + companyid,      // perhaps : data:{ ID : $('#id').attr('value'), name:$('#name').attr('value') }, 
dataType : "json",     
success: function(data){        // perhaps :var d = $.parseJSON(data);
$("#khmc").val(data.obj.khmc);
$("#khh").val(data.obj.khh);
$("#khzh").val(data.obj.khzh);
},
error: function (data, status, e){
alert(e);
}
});

JQuery in ajax Ask for more related articles on writing

  1. jquery in ajax After the request for background data is successful, it will not be executed success And don't execute error resolvent

    jquery in ajax After the request for background data is successful, it will not be executed success And don't execute error, In addition, the system reported an error :Uncaught SyntaxError: Unexpected identifier at Objec ...

  2. jquery in ajax Writing

    Method 1 : $.ajax(url,data,fn); $('#btn').click(function(){ $.ajax({ url:"112.json", type:" ...

  3. jQuery in ajax Of 4 There are two common ways to request

    jQuery in ajax Of 4 There are two common ways to request : 1.$.ajax() Return the created XMLHttpRequest object . $.ajax() There is only one parameter : Parameters key/value object , Contains the configuration and callback function ...

  4. Ajax - Asynchronous requests -jquery in ajax classification - first floor $.ajax - The second floor ($.get /$.post) - The third level ($.getJson/$.getScript) - Corresponding demonstration

    Ajax 1. The action of the browser in response to a standard request ( Synchronous operation ) 1.1 What resources does the browser request , Follow what resources are displayed 2.ajax: Asynchronous requests . 2.1 Partial refresh , By asynchronous request , After requesting the server resource data , Modify part of the page through script ...

  5. About Jquery in ajax Method data Summary of parameter usage

    data Data sent to server . Automatically convert to request string format .GET The request will be attached to URL after . see processData Option description to disable this automatic conversion . It has to be for Key/Value Format . If it's an array ,jQ ...

  6. Cross domain problems and Solutions jQuery in Ajax The explanation of Chuanshen

    1. Cross domain : No longer on the same server , It's the agreement , domain name , port , There's a difference : Browser for javascript The limitation of homology strategy : Case study : With http://172.164.23:8088/ For example Same domain name :172. ...

  7. jquery in ajax Simple use

    One .load() This is the simplest function , Pass in a url He loads it asynchronously url The content of , Then insert the content into each selected element , Replace what already exists in it . So the simplest usage is : $("#myDiv&qu ...

  8. jquery in ajax Use

    Java Software development , In the background, we can use various frameworks , image SSH And so on , For our convenience Java Code writing , for example ,Struts,SpringMVC Yes, from the front desk to action The process of packaging control , So that we just need to enter ...

  9. adopt Jquery in Ajax obtain json File data

    1. JSON(JavaScript Object Notation): javaScript Object notation : Is the syntax for storing and exchanging text information , Than xml smaller , faster , Easier to parse . 2. JSON Basic writing format : ...

Random recommendation

  1. CSS attribute ( Common properties )

    CSS attribute ( Common properties )http://www.w3school.com.cn/cssref/index.asp One : Text and font properties 1. Font properties (1):font-size: Font size ( for example :font ...

  2. Excel Aspose.Cells Format cell Is the number

    Workbook workbook = new Workbook(); // workbook Worksheet sheet = workbook.Worksheets[]; // Worksheet sheet.Cells ...

  3. Vmware Report errors : This host supports IntelVTx but IntelVTx In disabled state

    " This host supports IntelVTx but IntelVTx In disabled state ", Error reason : The computer is not on Virtualization Solution : The computer is off ( It's a shutdown, not a restart )-- Turn it on , Into the BIOS -- choice configura ...

  4. MySQL5.6 Of optimizer_trace

    MySQL Of explain It's the result of various execution plan choices , If you want to see the whole execution plan and how to choose between multiple indexing schemes ? MySQL5.6 This feature is supported in ,optimizer_trace This is mysql Parameters of , ...

  5. Vue To thoroughly understand the function of custom components v-model

    Studying recently vue, Today I see the form input component for custom events , Tangled for a while, and then suddenly realized ... The official tutorial is not very detailed , So I decided to summarize . v-model Grammatical sugar v-model Realize the bidirectional binding of form input , We are generally ...

  6. Tencent cloud server phstudy and lnmp

    phpstudy Installation :wget -c http://lamp.phpstudy.net/phpstudy.bin chmod +x phpstudy.bin # permissions ./phpstudy.bin ...

  7. A comprehensive interpretation of Java NIO working principle (2)

    A comprehensive interpretation of Java NIO working principle (2) 2011-12-14 10:31 Rollen Holt Rollen Holt The blog of   I want to comment on (0)  Font size :T | T JDK 1.4 New input and output introduced in ( ...

  8. Android Engineering picture resource naming taboo

    Android In Engineering ,res\drawable\ Name all the picture resource files in the folder , Don't allow : 1. Capital from Eclipse You can know the naming rules of the resource file . Invalid file name: ...

  9. ceph Storage cluster test plan

    -- Test purpose test ceph The read and write performance of the cluster , Learn about the whole... Based on the test data ceph The performance of the cluster . -- Test environment 1.8 node ceph Cluster environment ,1 Virtual machines (cpu 8 nucleus , Memory 8G),8k Block size , Duration 2 Hours 2.8 ...

  10. The fourth session CCF Software capability certification

    1. Image rotation Problem description Rotation is the basic operation of image processing , In this case , You need to rotate an image counterclockwise 90 degree . Image representation in a computer can be represented by a matrix , To rotate an image , Just rotate the corresponding matrix . Input format transport ...