$("#Camera").webcam({
width: 320,
height: 240,
mode: "save",
swffile: "@Url.Content("~/Content/jQueryWebcam/jscam.swf")",
onTick: function () { },
onSave: function () {
},
onCapture: function () {
webcam.save("@Url.Content("~/StudentRSRegistration/Capture?StudentIDD="+$("#StudentID").val())");
},
debug: function () { },
onLoad: function () { }
});上面的代码在$("#StudentID").val()美元符号附近显示一个错误。如何摆脱他的性格?
发布于 2015-04-10 07:28:30
问题不是美元符号,而是你试图混合服务器端代码和客户端代码,这是不可能的。您需要重构逻辑,如下所示:
webcam.save('@Url.Content("~/StudentRSRegistration/Capture?StudentIDD=")' + $("#StudentID").val());https://stackoverflow.com/questions/29555653
复制相似问题