答案 0 :(得分:1)
你可以使用这个css对我有用:
<script>
$('form').submit(function(e)
{
alert('submit intercepted');
e.preventDefault(e);
var u = { 'email': $('#email').val() };
$.ajax({
url: 'test2.php',
type: 'POST',
//dataType: 'string',
data: u,
success: function (response) {
//get response from your php page (what you echo or print)
console.log(response);
if (response === 'true') {
$('#status').append('<p>The email is ok to use and the row has been inserted </p><p>' + response);
} else {
console.log('Email does exist ');
}
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus, errorThrown);
}
});
});
</script>
然后你用场景构建器或myGrid.getStyleClass()附加css类.add(“mygridStyle”);