即时尝试使用php.js与我的脚本,但它没有工作,所以我解决了一个函数,并加载到一个单一的页面上,只有jquery和php.js,但仍然它心不是工作php.js无法正常工作
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="./pathinfo_function.js"></script><script>
$(document).ready(function() {
$(".do").click(function() {
alert(pathinfo('/www/htdocs/index.html', 'PATHINFO_EXTENSION'));
});
});
</script>
<a href='#' class='do'>Pathinfo</a>
它被各个击破,任何人都可以指出什么即时做错了
界定 '破'。 – Daedalus
没有什么会得到警报,并且下面没有任何东西会被执行 – Anup