小编Ion*_*nut的帖子

如何通过javascript或jquery将输入字段集中在Android浏览器上

我试过$('#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)

请帮忙!

javascript browser jquery android focus

8
推荐指数
1
解决办法
1万
查看次数

Maven 发布准备因 Git 子模块而失败

我们有一个多模块的 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)

git maven git-submodules maven-release-plugin

6
推荐指数
1
解决办法
291
查看次数