【发布时间】:2016-06-17 08:23:02
【问题描述】:
谁能告诉我为什么返回 false:
if('{{shopController.shop.shop_id}}.xml' == '89.xml')
即使{{shopController.shop.shop_id}} is 89 (string)
我正在尝试
echo nl2br(htmlspecialchars(file_get_contents($xml_file)));
【问题讨论】:
-
这个 if 语句在什么上下文中?是在 PHP 中吗?它在 Angular 中吗?如果是在 PHP 中,那么 PHP 在服务器上运行,而您的 Angular 代码将在客户端上运行,它就是行不通。
-
没有足够的信息来给出明智的答案。
标签: javascript php angularjs