求大神帮忙
<?php
class myInterface {
function first()
{
$name = $_GET['name'];
echo $name;
var_dump($name);
}
}
header("Content-Type:application/json;charset=utf-8");
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
$object = new myInterface;
$object ->first();
formSubmit: function (e) {
var that = this
wx.request({
url: 'http://localhost/houtai/App/Home/Controller/Wz.php?name=' + e.detail.value.input,
header: {
'content-type': 'application/json'
},
method: 'GET',
success: function (res) {
console.log(res.data)
},
})
},
<view>
{{currentnoteleng|0}}/{{notemaxleng}}Submit