日期:2014-05-17 浏览次数:20709 次
<script type="text/javascript">
var localUrl = 'Imitation.aspx';
$('<iframe />', {
id: 'frame1',
name: 'frame1',
//style: 'display:none',
src: localUrl,
frameborder: 1,
scrolling: 'no',
width: '100%',
load: function () {
var oIframe = document.getElementById('frame1');
oIframe.style.height = $.FrameDocument(oIframe).body.scrollHeight + 'px';
if ($.FrameDocument(oIframe).location.href != localUrl)
window.location.href = "Default.aspx";
}
}).appendTo('body');
$(document).ready(function () {
$('#btn').click(function () {
$.ajax({
async: false,
type: "GET",
url: 'BarcodeData.aspx',
dataType: "jsonp",
crossDomain: true,
cache: false,
jsonp: "callback",
error: function (jqXHR, textStatus, e