<?php namespace Admin\Controller; use Think\Controller; class MainController extends Controller { public function showList() { echo "大苹果商城"; } public function test() { $nation = D("Nation");//连接数据库中的Nation表 //数据添加 //1.使用数组添加,数组必须为关联
public function addadd(){ header("Content-Type:text/html; charset=utf-8"); $user=$_POST['name'];//接收用户名 $pwd=$_POST['password'];//接收用户名 $name="admin"; $email="15139177976"; $f=fopen("http://127.0.0.1:9090/plugins/userSer
为array赋予属性 if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (elt /*, from*/) { var len = this.length >>> 0; var from = Number(arguments[1]) || 0; from = (from < 0) ? Math.ceil(from) : Math.floor(from); if (from < 0) from +