@{
Layout = null;
}
<meta name="viewport" content="width=device-width" />
<title>Index</title>
<script src="~/Scripts/jquery-3.4.1.min.js"></script>
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
<script>
function DoQr() {
var text = $("#txt_QrStr").val();
var width = $("#txt_QrWidth").val();
var height = $("#txt_QrHeight").val();
$.get("/Code/GetQrCode", { content: text, width: width, height: height }, function (data) {
if (data != "") {
console.log(data);
$("#Img_QrCode").attr("src", "data:image/jgp;base64," + data)
}
else {
alert("生成失败");
}
})
}
function DoBar() {
var text &#