---HTML
<form action="/Sample/SampleList/ExportSample" style="display:inline">
<input type="hidden" id="vguidList" name="vguidList" />
<input type="submit" value="Export" class="labbtn" onclick="sampleclick()" />
</form>
---JS
$("#vguidList").val(JSON.stringify(vaguidList));
--后台
public void ExportSample(string vguidList)
{
var data = vguidList.Substring(1,vguidList.Length-2);
_sampleLocationDataService.Export(data);
}
时间: 2024-10-07 06:53:21