小编Gar*_*ary的帖子

Bitbucket - 与另一个分支同步分支

这可能是How to keep a git branch in sync with master的副本(我假设我可以用另一个分支替换 Master ),但至关重要的是它可以工作并且不会以错误的方式合并,所以我需要做当然。

设想

有一个名为 的分支v1,我创建了一个名为 的分支v1_adminui。我已经对我的分支进行了大约 10 次提交v1_adminui,但是对项目的另一部分进行了重大改进v1,因此我想将该更改与我当前的分支同步。

我相信以下方法可以做到:

git checkout v1
git pull
git checkout v1_adminui
git merge v1
Run Code Online (Sandbox Code Playgroud)

请您确认一下是否正确?如果没有,将不胜感激有关如何实现这一点的任何帮助。

git sync bitbucket git-merge git-branch

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

JQuery - 使用navigator.notification.alert

我要求弹出窗口显示自定义标题(从应用程序的index.html看起来看起来很俗气).

我尝试了以下链接末尾的建议:

使用PhoneGap HTML在iOS中自定义JavaScript警报

所以我在脚本部分的index.html中添加了以下代码:

   function showMessage(message, callback, title, buttonName){

        title = title || "default title";
        buttonName = buttonName || 'OK';

        if(navigator.notification && navigator.notification.alert){

            navigator.notification.alert(
                message,    // message
                callback,   // callback
                title,      // title
                buttonName  // buttonName
            );

        }else{

            alert(message);
            callback();
        }

    }
Run Code Online (Sandbox Code Playgroud)

UPDATE

我有以下警报代码;

if ((inputNumber>maxAllowed))
        {
        showMessage("The input is too high.",null,"Warning","Warning");
        }
Run Code Online (Sandbox Code Playgroud)

编译应用程序后,这不起作用.

以下是在index.html中:

    document.addEventListener("deviceready", onDeviceReady, false);

            function onDeviceReady() {
            // Now safe to use the PhoneGap API
            }

<function shown above is here>
Run Code Online (Sandbox Code Playgroud)

知道为什么这还不行吗?从index.html显示

谢谢.

亲切的问候,

加里谢尔吉尔

customization notifications alert jquery-mobile cordova

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