您对此代码的查找解决方案没有什么问题:
class workerThread extends Thread
{
private $document;
private $i;
public function __construct($i)
{
$this->i = $i;
}
public function run()
{
$document = new DOMDocument();
try {
$root = $document->createElement("Root");
$document->appendChild($root);
} catch (RuntimeException $e) {
return false;
}
$this->document = $document->saveXML();
}
public function getRoot()
{
$document = new DOMDocument();
$document->loadXML($this->document);
return $document->documentElement;
}
}
如何用data-value-select =(此attrVal)选择元素?