easyui下的Comobox 的多选有关问题

easyui下的Comobox 的多选问题
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Multiple Select - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Load Dynamic ComboBox Data</h2>
<p>Drop down the panel and select multiple items.</p>
<div style="margin:20px 0"></div>

<input class="easyui-combobox" 
name="language"
data-options="
url:'combobox_data1.json',

问题:这里用的是“json”文件。    
    
            如果不需要json文件,一共只有 4个选项,“项目一,项目二,项目三,项目四”,能不能写死在这里的代码里面。

method:'get',
valueField:'id',
textField:'text',
multiple:true,
panelHeight:'auto'
">

</body>
</html>
------解决方案--------------------
可以新建一个变量,把json里的数据赋值给变量,然后赋值给data,比如

<input class="easyui-combobox" data-options="
valueField: 'label',
textField: 'value',
data: [{
label: 'java',
value: 'Java'
},{
label: 'perl',
value: 'Perl'
},{
label: 'ruby',
value: 'Ruby'
}]" />