class CountController extends Controller{//核心算法//用戶輸入的數(shù)據(jù)收集var $planstart;//計(jì)劃開(kāi)始時(shí)間var $planend;//計(jì)劃結(jié)束時(shí)間var $plantime;//計(jì)劃周期var $goodnum;var $workernum;var $workday;//工作制var $workereff;var $dutyarr;//進(jìn)行賦值function __construct(){$this->planstart=$_POST['pl_start'];$this->planend=$_POST['pl_end'];$this->plantime=$this->planend-$this->planstart;$this->goodnum=$_POST['pl_goodnum'];$this->workernum[0]=$_POST['pl_opmember'];$this->workernum[1]=$_POST['pl_psmember'];$this->workernum[2]=$_POST['pl_exmember'];$this->workday=$_POST['pl_workday'];$this->workereff=8;//每天8個(gè)工時(shí)$this->dutyarr=$_POST['duty_arr'];}
為什么會(huì)有這個(gè)提示呢,構(gòu)造函數(shù)里那個(gè)地方寫(xiě)錯(cuò)了呢
哆啦的時(shí)光機(jī)
2023-04-08 14:10:09