我试过$('#field').focus(),在互联网上找到的任何其他方法.没有任何效果.我有一个简单的HTML来重现问题.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#field').focus();
});
</script>
</head>
<body>
<input type="text" id="field" name="field"/>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
请帮忙!
我们有一个多模块的 Maven 项目,其中的模块也是 Git 的子模块。
当我在父项目上执行 mvn release:prepare 时,出现此错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project big-project-parent: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-add command failed.
[ERROR] Command output:
[ERROR] fatal: Pathspec 'basic-utils\pom.xml' is in submodule 'basic-utils'
Run Code Online (Sandbox Code Playgroud)