为什么代码不会运行? [英] Why else the code will not run؟
本文介绍了为什么代码不会运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$。 get (
ajax.php,
{dta:val1},
function(data1)
{
if (data1.msg1!= null )
{
alert(val1);
$(' #div10')。text(data1.msg1);
}
}
else
{
alert(' sosool')
}
},' json'
);
为什么代码不会运行?
什么是t他有问题吗?
tnx
已添加代码块[/ Edit]
解决方案
。 get (
ajax.php,
{dta:val1},
函数(data1)
{
如果(data1.msg1!= null )
{
alert(val1);
( ' #div10')。text(data1.msg1);
}
}
else
{
alert(' sosool')
}
},' json'
);
为什么代码不能运行?
有什么问题?
tnx
已添加代码块[/编辑]
$.get(
"ajax.php",
{dta:val1},
function(data1)
{
if(data1.msg1!=null)
{
alert(val1);
$('#div10').text(data1.msg1);
}
}
else
{
alert('sosool')
}
} , 'json'
);
Why else the code will not run?
What is the problem?
tnx
[Edit]Code block added[/Edit]
解决方案
.get( "ajax.php", {dta:val1}, function(data1) { if(data1.msg1!=null) { alert(val1);
('#div10').text(data1.msg1); } } else { alert('sosool') } } , 'json' );
Why else the code will not run?
What is the problem?
tnx
[Edit]Code block added[/Edit]
这篇关于为什么代码不会运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文