首页  

jQuery 实用代码     所属分类 jquery 浏览量 483
$('#connectBtn').val('连接中......');
$('#serviceAddress').val();
$('#connectBtn').attr('disabled',true)
$('#connectBtn').attr('disabled',false);
window.location.href='namespaceList.html';
$('#xxx').html("xxxxxxxxx");

获取输入框 的值  $('#xxx').val();
input select
var data = {};
data["field1"] = $('#field1').val();
data["field2"] = $('#field2').val();

$('#xxx').hide
$('#xxx').show()


id选择器 $("#id")
元素选择器 $("元素")
类选择器 $(".class")

$("#id").text() 
$("#id").html() 


$("#id").text("<div>hello</div>") 
$("#id").html("<div>hello</div>") 




$('#hellobtn').click(function hello(){
  alert("hello");
});

    

jquery ajax 实例

上一篇     下一篇
jquery 获取 query 参数

Vue简介

Javascript strip 去除首尾指定的字符串

使用 netcat 查看 http 请求信息

jquery ajax 实例

XMLHttpRequest 例子