$.ajax({
type: 'post',
async: true,
data: {
"security": "终端安全",
"company": "000100010000",
"days": 1,
"rows": 10
},
url: 'http://***/Aqfk/api/DataHandler.ashx?license=abc@321',
dataType: "json",
success: function (res) {
console.log(res);
},
error: function (err) {
console.log(err + "请求数据失败!");
}
});
function curl_post($url, $data = array())
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
// POST数据
curl_setopt($ch, CURLOPT_POST, 1);
// 把post的变量加上
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}

$url = "http://***/Aqfk/api/DataHandler.ashx?license=abc@321";
$data = array(
"security" => "边界安全",
"company" => "000100010000",
"days" => 1,
"rows" => 10
);

var_dump(curl_post($url, $data));

lockdatav Done!



弹跳小球java编程 弹小球游戏编程

目录前言需要的知识点清屏函数system("cls")Sleep函数标识符的命名先浅做一个会跳的小球再让小球完整的跳前言声明:本游戏参考《c语言课程设计与游戏开发实践教程》视频效果如下 弹跳小球1.0版 小球从页面左上角弹出,可以在一定边界内自由上下弹跳,总体趋势向右弹跳。小球跳出页面后会自动回到最左侧。需要的知识点必备基础知识:基本的输出函数printf,for循环,while循环,if语

python下载脚本 python123脚本

目录前言01-hello world!02-print.py03-基本运算.py04-input.py05-字符串的使用06-列表基础07-元组基础08-字典基础09-基本判断语句10-三元运行符前言脚本运行在CentOS 7环境下的,请知晓!!!学习一门语言,最好的方法就是多敲!!!01-hello world!#!/usr/local/bin/python3 #解释器的环境变量