$('#jishijiaoyi').click(function()
{
document.getElementById('layer').style.width="500px";
document.getElementById('layer').style.height="280px";
document.getElementById('layer_content').style.width="490px";//10
document.getElementById('layer_content').style.height="240px";//40
var send_type = document.getElementById('sType').value;
if(send_type=="1"||send_type=="2"){
//var id = document.getElementById('link_id').value;
  var account =document.getElementById('link_account').value;
  var currName = document.getElementById('cName').value;
  var bPrice = document.getElementById('bPrice').value;
  var sPrice = document.getElementById('sPrice').value;

document.getElementById("layer_handle").innerHTML="即时交易";
document.getElementById("dialog1").setAttribute("src","rt_transaction.jsp?account="+account+"&currName="+currName+"&bPrice="+bPrice+"&sPrice="+sPrice+"&tradeFlag="+send_type);

$("#layer").show();}


});
很简单 ,就是 解释一下 语法 就行 详细一点 可以吗,有的 有点看不懂. 谢谢了.#jishijiaoyi 什么意思.还有 其他的全部都解释一下谢谢了.

解决方案 »

  1.   

    $(元素id)应该是JQuery的语法 类似document.getElementById()  
      

  2.   

    楼上正解,建议找jquery文档看看
      

  3.   

    这个应该使用的是jq框架如果是,$('#jishijiaoyi').click意思为给id为jishijiaoyi的控件添加onclick事件
      

  4.   

    $('#jishijiaoyi').click(function()
    这个function() 是干什么的 解释的详细一点啊.
      

  5.   

    function() 函数啊,$('#jishijiaoyi').click(function()   将id为#jishijiaoyi的元素的click事件绑定到某个函数,这里就直接定义函数体了,是个匿名函数。