【发布时间】:2015-12-31 16:29:47
【问题描述】:
我使用 PHP Simple HTML DOM Parser,我想将 javascript 链接添加到 html dom。 这是我的代码。
$html= file_get_contents("http://example.com")
我要添加
<script type="text/javascript" src="http://exapmle.com/example.js"></script>
head 标签之间的链接。 谁知道解决办法?
【问题讨论】: