Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. ajax举例

ajax举例

  • Post author:xfxia
  • Post published:2023年10月31日
  • Post category:其他



XML/HTML code




?

1
2
3
4
5
6
7
8
9

#Ajax:

$.ajax({




type: "POST",



url: "some.php",



data: "name=John&location=Boston",



success: function(msg){




alert( "Data Saved: " + msg );



}

});










#some.php



PHP code




?

1
2
3
4



$name


=


$_POST


[


'name'


];



$location


=


$_POST


[


'location'


];



$msg


=


$name


+


$localtion


;



echo


$msg


;


你可能也喜欢

MathType使用总结2-公式格式-字体设置

C语言 A1—一维数组元素大小顺序排列

Android中Cursor类的getColumnIndex()方法的用法

并排的两个div之间会有空隙

外网疯传,字节P8闭关三月撰写的数据结构与算法笔记遭恶意开源

matlab加载xls文件报错,服务器出现意外情况,远程过程调用失败

Gstreamer常见pipeline命令 – 持续更新中

SQL Server如何导出一张表的数据

Arduino教程六—DS1302时钟模块

Dubbo 2.7.14+Zookeeper 3.6.3 +SpringBoot整合示例

Spring Bean生命周期——从源码角度详解Spring Bean的生命周期(上)

js简易ATM模拟

android xml居中,xml – 如何将drawableTop和文本垂直居中在Android的Button上?

最少硬币个数

为爸妈策划一场旅行

js实现简单计时效果

颜色rgb设置透明度 16进制常见颜色

推荐两个界面原型设计工具–GUIDesignStudio 和 Mockups For Desktop

c语言using namespace std什么意思

js 根据某属性取出数组中对应的对象

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单