有没有办法在jQuery中动态创建和提交表单.
像下面的东西.
<html>
<head>
<title> Title Text Goes Here </title>
<script src="http://code.jquery.com/jquery-1.7.js"></script>
<script>
$(document).ready(function(){alert('hi')});
$('<form/>').attr('action','form2.html').submit();
</script>
</head>
<body>
Content Area
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是应该工作还是有不同的方法来做到这一点?
我的Application班级看起来像这样:
public class Test extends Application {
private static Logger logger = LogManager.getRootLogger();
@Override
public void start(Stage primaryStage) throws Exception {
String resourcePath = "/resources/fxml/MainView.fxml";
URL location = getClass().getResource(resourcePath);
FXMLLoader fxmlLoader = new FXMLLoader(location);
Scene scene = new Scene(fxmlLoader.load(), 500, 500);
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
Run Code Online (Sandbox Code Playgroud)
通过先调用默认构造函数然后调用方法,FXMLLoader创建相应控制器的实例(在FXML文件via中给出fx:controller)initialize:
public class MainViewController {
public MainViewController() {
System.out.println("first");
}
@FXML
public void initialize() {
System.out.println("second");
} …Run Code Online (Sandbox Code Playgroud) 有没有一个工具可以告诉我一个或多个属性文件中的冗余键和值.
我们是否有任何工具可以对Sybase数据库进行单元测试?
我无法在http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks中找到一个
我正在寻找一个工具,可以让我进行单元测试存储过程.就像我们使用utPLSQL一样.这个工具将被数据库人员用于单元测试.
java ×2
forms ×1
java-ee ×1
javafx ×1
javascript ×1
jquery ×1
submit ×1
sybase ×1
unit-testing ×1