...,比如让用户传入按什么字符分割,请参照下面写法编写构造函数: ~~~ [php] class XSTokenizerXyz implements XSTokenizer { private $delim = '-'; // 默认按 - 分割 public function __construct($arg = null) { if ($arg !== null && $arg !== '') ...