0
$("#getVerification").click(function() {
var tmp=$("#cellphone").val();
console.log(tmp);
$.getJSON("{{ url_for('auth.sendsms', cellphone=tmp)}}",
function(data){
});
});
如上述代码中,我要使用的字符串变量tmp
如功能url_for
的参数,但我不知道怎样,如何传递JS变量到烧瓶神社功能url_for
由于很多!