javascript函数中可以使用PHP吗?
<scriptlanguage="JavaScript">functionOnDelete(id,name){$poweruser=<?php$samepoweruser...
<script language = "JavaScript">
function OnDelete(id, name){
$poweruser = <?php
$samepoweruser = GetSamePowerUser(id);
echo $samepoweruser;
?>
alert($poweruser);
}
</script>
这样使用可以吗?调用不了php啊!!! 展开
function OnDelete(id, name){
$poweruser = <?php
$samepoweruser = GetSamePowerUser(id);
echo $samepoweruser;
?>
alert($poweruser);
}
</script>
这样使用可以吗?调用不了php啊!!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询