我正在运行以下代码,这是 Infragistics SparkLineChart 示例中的示例代码:
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Ignite UI Required Combined CSS Files -->
<link href="../../igniteui/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="../../igniteui/css/structure/infragistics.css" rel="stylesheet" />
<script src="../../js/modernizr.min.js"></script>
<script src="../../js/jquery.min.js"></script>
<script src="../../js/jquery-ui.min.js"></script>
<!-- Ignite UI Required Combined JavaScript Files -->
<script src="../../igniteui/js/infragistics.core.js"></script>
<script src="../../igniteui/js/infragistics.dv.js"></script>
</head>
<body>
<!-- Target element for the igSparkline -->
<div id="sparkline"></div>
<!-- File supplying the northwindInvoices object for the igSparkline data source -->
<script src="../../data-files/nw-invoices.js"></script>
<script>
$(function () {
$("#sparkline").igSparkline({
dataSource: northwindInvoices,
height: "100px",
width: "300px",
valueMemberPath: 'ExtendedPrice',
labelMemberPath: 'OrderDate',
normalRangeVisibility: "visible",
normalRangeMinimum: 200,
normalRangeMaximum: 600,
trendLineType: "simpleAverage"
});
});
</script>
</body>
</html>
调试时出现以下错误:
SCRIPT1009:应为“}”
MyPage.html,第 39 行字符 4