我的页面中有一些 jQuery 不断给出错误:
SyntaxError: missing : after property id
代码
<div id='content1' >
<script type="text/javascript">
$(document).ready(function () {
var theme = getDemoTheme();
var source = [
"Suppliers",
"Global Networks",
"Supplier Networks",
"Supplier Prices",
"Supplier Data Import",
"Supplier Target Price Export"
];
// Create a jqxDropDownList
$("#jqxWidget1").jqxDropDownList({ source: source, selectedIndex: 0, width: '200',margin-top:'0px', height: '25', theme: theme });
});
</script>
<div id='jqxWidget1'>
</div>
Firebug 说它在这条线上: