PHP
作为web最好的选择
PHP
-
$this
PHP$this用以没有实例化的调用。
例如在thinkphp5中控制器fetch()模板文件时,执行fetch()方法的类就不用实例化。
eg:
class Entry extends Common{
//首页
publicfunctionindex(){
//加载首页模板文件
return $this->fetch();
}
}
阅读更多风口下的猪2019-06-09发表在【PHP】
-
.php?q=和&sid=是用来干什么
PHP其是一种Ajax的get方法通过url传值的方式
?表示后面有参数,&用来连接参数,比如url如下:user.php?name=zhangsan&password=lisi,意思就是以get方式传递两个参数,$_GET['name']=zhangsan,$_GET['password']=lisi。
阅读更多风口下的猪2019-06-09发表在【PHP】
-
解决 json_encode 格式化的数据出现反斜杠的问题
PHP
阅读更多风口下的猪2019-06-09发表在【PHP】
/ponder/index.php/index/catelist/catelist/cateid/10.html