小编use*_*436的帖子

从Cordova plugin.xml向AndroidManifest.xml"application"标签添加android:name ="something"

我决定打开一个新问题,因为那些已发布的问题都没有,答案很好.

我需要从plugin.xml更新AndroidManifest.xml ,以便 <application>标签具有以下属性,以及它已有的属性:

android:name="mypackage"
Run Code Online (Sandbox Code Playgroud)

怎么办?

谢谢

android android-manifest cordova cordova-plugins

19
推荐指数
2
解决办法
8316
查看次数

如何调试cordova插件并使用"android.util.log"进行日志记录

我正在开发一个使用插件的cordova应用程序.

其中一个使用android.util.log中的Log.v方法.

问题:

1) where does the plugin flush this logs? And how I can check them?

2) it's possibile to print something to console at runtime from the "java side"?  

I can only debug the javascript part through "crome://inspect" on Google Chrome
or 
via adb running the command "adb logcat CordovaApp:D *:S"
Run Code Online (Sandbox Code Playgroud)

重要说明: 我正在使用netbeans 7.4并且我无法从netbeans启动run命令,因为它没有考虑root config.xml文件,导致重写我的设置以及(不知道原因),由于未检测到的插件(已安装peraphs)并且每次从git获取时重新下载它们,因此该过程需要花费太多时间才能运行.

谢谢

java logging plugins android cordova

7
推荐指数
1
解决办法
6082
查看次数

如何在使用window.print时通过css隐藏<A>标签的href属性

我有一个php页面,有一个按钮,用户可以通过window.print函数进行打印.

我需要知道如何在打印页面时隐藏html标签的href属性

示例:如果标记如下所示:

  <a href='myurl.com'>HELLO</a>
Run Code Online (Sandbox Code Playgroud)

我想只显示你好.

我只有在使用window.print时才会这样做.

我已经以这种方式设置了用于打印的CSS:

@media print {
  body * {
    visibility:hidden;
  }
  #section_to_print, #section_to_print * {
    visibility:visible;
  }

  #section_to_print {
    position:absolute;
    left:0;
    top:0;
  }

  /*
  //HERE I NEED A RULE TO HIDE
  // ONLY HREF ATTRIBUTE BUT NOT CONTENT OF A TAG
  //BUT IN THIS WAY THEY HIDE THE WHOLE TAG OF COURSE
  #section_to_print a {
    display:none;
  } 
 */

  @page { size: landscape; }
}
Run Code Online (Sandbox Code Playgroud)

并且所有工作都正常,除了用href部分打印的链接.

谢谢

javascript css

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

OnsenUi Angular和登录

我正在尝试使用onsen + cordova开发移动应用程序

我需要的是:

当应用程序启动时,它会加载login.html页面.如果应用检测到用户已登录,则会重定向到home.html

对于每个"受保护的页面",我想调用一个检测用户是否已记录的函数.如果不是我想重定向到登录页面.

所有"受保护的页面"都有一个幻灯片菜单.

按照我的所作所为:

的index.html

<html ng-app="app2gest">
    <head>
        <meta charset="utf-8">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="mobile-web-app-capable" content="yes">
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height"/>

        <title>App2Gest</title>

        <link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsenui.css"/>

        <link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components.css"/>

        <!-- Download also your onsen-css-components.css stylesheet using the integrated CSS Components Theme Roller
        http://components.onsenui.io -->

        <link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components-blue-theme.css"/>
        <!--<link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components-default.css"/>-->
        <!--<link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components-blue-basic-theme.css"/> -->
        <!--<link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components-dark-theme.css"/> -->
        <!--<link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components-sunshine-theme.css"/> -->
        <!--<link rel="stylesheet" type="text/css" href="vendors/onsen/css/onsen-css-components-purple-theme.css"/> --> …
Run Code Online (Sandbox Code Playgroud)

login angularjs onsen-ui

3
推荐指数
1
解决办法
4399
查看次数

角度ng重复问题

我有这个控制器:

app.controller('HomeController', function($scope) {

$scope.buttonList = [
    {
        href: "http://ciao.html",
        cssClass: "",
        iconBeforeCssClass: "",
        labelCssClass: "",
        labelText: "ciao",
        iconAfterCssClass: "",
    },

    {
        href: "ciao2.html",
        cssClass: "",
        iconBeforeCssClass: "",
        labelCssClass: "",
        labelText: "ciao2",
        iconAfterCssClass: "",
    }                
];    
Run Code Online (Sandbox Code Playgroud)

});

该指令:

app.directive('widgetButtonList', function() {
var directive = {};

directive.restrict = 'E';
directive.replace = false;

directive.templateUrl = 'modules/directives/widget-button-list.html';

directive.scope = {
    additionalCssClass: "@",      
    buttons : "@",
};

return directive; });
Run Code Online (Sandbox Code Playgroud)

模板如下:

<div class="ap-block ap-button-list-block {{additionalCssClass}}">           
<ul>
    <li ng-repeat="btn in buttons track by $index">                 
        <a …
Run Code Online (Sandbox Code Playgroud)

angularjs angularjs-directive angularjs-ng-repeat

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

如何通过 REST API 将用户添加到 Apache Ranger

如标题所示,如何通过 REST API 手动将用户添加到 Apache Ranger。

你能发布一个curl调用的例子吗?

你能在成瘾中发布一个网址,我可以在其中找到以下文档:

   http:<ip>:6080/service/xusers/???
Run Code Online (Sandbox Code Playgroud)

apache policy hadoop apache-ranger

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

我的垃圾邮件检查器检测到 DCH 代理

我正在尝试一种检测代理连接的工具,其中一个 IP 地址被检测为 DCH 代理,但这意味着什么?

proxy reverse-proxy spam-prevention

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