我遇到的情况是默认情况下所有数据都为零.像这样的东西:
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Year', 'Austria', 'Belgium', 'Czech Republic', 'Finland', 'France', 'Germany'],
['2003', 0, 0, 0, 0, 0, 0],
['2004', 0, 0, 0, 0, 0, 0],
['2005', 0, 0, 0, 0, 0, 0],
['2006', 0, 0, 0, 0, 0, 0],
['2007', 0, 0, 0, 0, 0, 0],
['2008', 0, 0, 0, 0, 0, 0]
]);
// Create and draw the visualization.
new google.visualization.ColumnChart(document.getElementById('visualization')).
draw(data,
{title:"Yearly Coffee Consumption by Country", …Run Code Online (Sandbox Code Playgroud) 我试图通过以下代码片段在Angular js中进行通配符(*)路由:
$routeProvider.when('/something/:action/:id/:params*\/', {
templateUrl : "/js/angular/views/sample/index.html",
controller : 'SampleCtrl'
}).otherwise({
redirectTo: '/something/all' //This exists in real code
});
Run Code Online (Sandbox Code Playgroud)
示例路径:/#/ something/details/201/1
在调用此url时,它会执行其他方法.我在这做错了什么?提前致谢