| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <script lang="text/javascript">
- //GET
- function m_get(url) {
- send_get_request(url);
- }
- //POST
- function m_post() {
- send_post_request(url);
- }
- //PUT
- function m_put() {
- send_put_request(url);
- }
- //DELETE
- function m_delete() {
- send_delete_request_as_url(url);
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////
- $(document)
- .ready(
- function() {
- $('#get').click(function() {
- send_get_request($("#url").val());
- });
- $('#post').click(function() {
- send_post_request($("#url").val());
- });
- $('#put').click(function() {
- send_put_request($("#url").val());
- });
- $('#delete').click(function() {
- send_delete_request($("#url").val());
- });
- jQuery("#url").val("../jaxrs/customer/baseinfo/create");
- jQuery("#content")
- .text(
- '{"customername": "客户名称一","customertype": "客户","level": "一般客户","source": "转介绍","industryfirst": "金融业","industrysecond": "信托/担保/拍卖/典当","province": "重庆市","city": "两江新区","county": "工业园区","houseno": "详细街道地址","addresslongitude": "106.572463","addresslatitude": "29.649001","telno": "电话","customerfax": "传真","url": "网址","remark": "备注","email": "邮件","state": "见面拜访","qqno": "","webchat": "","customersequence": "20170531_000057","creatorname": "金飞"}');
- });
- </script>
- </head>
- <body>
- <div style="float: left; width: 720px;">
- <div style="width: 100%;">
- <table border="1" style="width: 100%">
- <tr>
- <td>URL:</td>
- <td><input type="text" id="url" style="width: 95%" placeholder="../jaxrs/forum/" value="" /></td>
- </tr>
- <tr>
- <td>type:</td>
- <td>创建客户。</td>
- </tr>
- <tr>
- <td colspan="2">
- <button id="put">PUT</button>
- </td>
- </tr>
- <tr>
- <td colspan="2"><textarea id="content" style="width: 97%; height: 300px">{}</textarea></td>
- </tr>
- <tr>
- <td colspan="2"><textarea id="result" style="width: 97%; height: 400px"></textarea></td>
- </tr>
- </table>
- </div>
- </div>
- </body>
- </html>
|