现在我已经生气了,我试图在几个小时内获得输入元素的 onclick 属性......
我收到以下错误:
Notice: Trying to get property of non-object in C:\wamp\www\glitcher\ab.php on line 6
这是片段:
<?php
include 'simple_html_dom.php';
$content='<input type="button" onclick="s8Ajax(\'/bounty.php?hitlist_id=32234066&formNonce=166f7ddc73ce8024c3a6a2b894fa0c83a3d5272c&setTab1Badge=&h=891173dbc0c1aef4bec8592a7e3e74306efa7065\')" class="btnMed" style="font-size: 15px;" value="Add to Hit List">';
$content=str_get_html($content);
$href=$content->find('.btnMed');
$href=$href->onclick;
echo $href;
?>
提前致谢