下面用Jmeter发送一个post请求, 对应的js代码如下: $(#register_a).click(function() { var name = $(#uname).val(); var pwd = $(#pwd).val(); var email = $(#email).val(); var user = { name : name, password : pwd, email : email }; $.ajax({ beforeSe