javascript - 如何使用 Angular JS 链接到另一个页面
问题描述
如何将"link" : "#mathematics"
php 中的以下内容链接到另一个名为 php 的页面mathematics.php
?
<script>
var app = angular.module('progressApp', []);
app.controller('progressBars', ['$scope',
function($scope) {
$scope.fundData = [{
"fund": "Mathematics",
"goal": "400",
"raised": "389",
"link": "#mathematics"
}, {
"fund": "Physics",
"goal": "350",
"raised": "169",
"link": "#physics"
}, {
"fund": "Chemistry",
"goal": "350",
"raised": "203",
"link": "#chemistry"
}, {
"fund": "Programming",
"goal": "350",
"raised": "299",
"link": "#programming"
}];
}
]);</script>
如何将 替换#
为链接到 php 页面的代码?
解决方案
推荐阅读
- php - 在选择文本选项中突出显示特定文本的颜色
- gsm - 如何检测 AT 调制解调器发起的呼叫是否被拒绝
- javascript - 当用户访问其他页面时如何保留 cookie 值?
- javascript - 如何拆分字符串并获取日历事件 ID?
- php - Laravel MongoDB 无法正确获取 belongsTo 关系值
- amazon-web-services - 集群 IP 服务的 nginix-ingress 是否直接进入正确的节点而没有中间节点?
- java - IntelliJ IDEA 中的自动“log.info”完成?
- javascript - 如果输入值与不同数组中的一个值匹配,请检查复选框列表
- java - CardView 未显示在片段内
- protocols - Minecraft 服务器查询协议。SessionId 字段标识什么?