本帖最后由 wsdydmw 于 2011-09-16 13:05:07 编辑

解决方案 »

  1.   

    你的id你是知道的把!你可以这样得到啊
    $("#input_picture").attr("format");//得到的就是test
      

  2.   

    你可以去看看jquery的arrt元素
    attr(name)
    取得第一个匹配元素的属性值。通过这个方法可以方便地从第一个匹配元素中获取一个属性的值。如果元素没有相应属性,则返回 undefined 。--------------------------------------------------------------------------------Access a property on the first matched element. This method makes it easy to retrieve a property value from the first matched element. If the element does not have an attribute with such a name, undefined is returned.
    返回值
    Object参数
    name (String) : 属性名称示例
    返回文档中第一个图像的src属性值。 HTML 代码:<img src="test.jpg"/> jQuery 代码:$("img").attr("src"); 结果:test.jpg 
      

  3.   

    不是啊 你误解我的意思了 我知道id怎么获得
    我是说在function test(id,name,tagname){...}这个函数的参数是如何赋值的 然后在方法体里面可以使用
      

  4.   

    format='test'function test() {}有神马关系?