Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试
$this->size(array('width' => 960, 'height' => 400));
我收到“BadMethodCallException:命令‘size’不存在或尚不受支持。”
我也试过这个
$win = $this->window("")->size(array('width' => 960, 'height' => 400));
但这只是给我一个空对象。
您可以尝试方法 currentWindow()
$win=$this->currentWindow(); $win->size(array('width' => 960, 'height' => 400));