如何将对象类存储到PHP会话中,然后将其作为变量放在我的下一页中.你能帮忙吗?
这是我的class.inc.php
class shop {
var $shoeType;
var $color;
public function __construct() {
$shoeTypeService = new ShoeTypeService();
$shoe = $shoeTypeService->getAllShoes();
$this->shoeType = $shoe[20];
}
}
Run Code Online (Sandbox Code Playgroud) 如何在一个单击事件中使用两个不同类型的元素,这是我的代码不起作用.
$('li. selectable a')&&('td.selectable a').click(function() { .... });
Run Code Online (Sandbox Code Playgroud)