将PHP var与AngularJS var进行比较

时间:2016-03-30 21:18:47

标签: php angularjs

在此代码中:

<?php
    //students.name in js = "JUANITO"
    $value = "{{ students.name }}";
    $name  = "JUANITO";
    if($value==$name) echo "EQUALS";
    else echo "DIFFERENT";
?>

结果是:“不同”..为什么?

0 个答案:

没有答案