小编Ved*_*Ved的帖子

在隐藏的父级Div中显示Child Div

如何在保持其父级隐藏的同时显示Child Div?可以这样做吗?

我的代码如下:

<style>
  .Main-Div{
   display:none;
}
</style>

<div class="Main-Div">
    This is some Text..
    This is some Text..
    <div class="Inner-Div'>
        <a href="#"><img src="/image/pic.jpg"></a>
    </div>
    This is some Text..
    This is some Text..
</div>
Run Code Online (Sandbox Code Playgroud)

html css

56
推荐指数
4
解决办法
7万
查看次数

在顶级android上显示带有白点的分页控件

我想显示这种类型的分页控件,如图中所示,我得到字符串数组的长度,我想显示长度作为分页控件,白点作为页数.请帮助

在此输入图像描述

android

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

Phonegap本地构建 - jquery ajax错误:readystate 0 responsetext status 0 statustext error

希望有人能提供帮助.

我正在开发一个phonegap应用程序.

问题是,当我使用桌面浏览器或甚至是phonegap移动应用程序运行应用程序时,请求运行正常,但是当我使用CLI v5.4.1本地构建时phonegap build android,proictroot/platforms/android/build/outputs/apk /中的cli输出android-debug.apk我收到错误"readystate 0 responsetext status 0 statustext error"

这是我的代码

$.ajax({
    type: 'GET',
    url: "http://www.domain.com/gateway.php?structure",
    timeout: 5000,
    success: function(result) {
        var res = JSON.parse(result);
        res.forEach(function(element, index) {
            System.structure[element.company.id] = element;
        });
    },
    error: function(XMLHttpRequest, textStatus, errorThrown) {
        alert('error: ' + JSON.stringify(XMLHttpRequest));
    }
})
Run Code Online (Sandbox Code Playgroud)

这是我的config.xml

<plugin name="cordova-plugin-inappbrowser" source="npm"/>
<plugin name="phonegap-plugin-push" source="npm" />

<icon src="icon.png"/>

<access origin="*"/>
<plugin name="cordova-plugin-whitelist" version="1" />

<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
Run Code Online (Sandbox Code Playgroud)

我发现这非常奇特,在搜索了所有类似的问题后,我都没有回答.

我究竟做错了什么?

ajax jquery android config cordova

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

允许在cordova中呼叫(以及地图和邮件)

我一直在努力解决这个问题.在人们从弹出窗口按"呼叫"后,我正试图打电话.有趣的是,当他们点击电话号码时,它会直接拨打电话.但当他们点击"呼叫"时,控制台返回:

ERROR Internal navigation rejected - <allow-navigation> not set for url='tel:06-83237516

码:

控制器:

$scope.callPerson = function() {
    var link = "tel:" + $scope.person.phonenumber;
    var confirmTel = $ionicPopup.confirm({
        title: $scope.person.phonenumber,
        cancelText: 'Cancel',
        okText: 'Call'
    });
    confirmTel.then(function(res) {
        if (res) {
            window.open(link);
        } else {
            console.log('cancel call');
        }
    });
}
Run Code Online (Sandbox Code Playgroud)

config.xml文件:

<access origin="*"/>
<allow-intent href="tel:*"/>
<allow-intent href="mailto:*"/>
<access origin="tel:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
Run Code Online (Sandbox Code Playgroud)

HTML:

<div ng-click="callPerson()"> {{person.phonenumber}}</div>  
Run Code Online (Sandbox Code Playgroud)

使用Mail,它根本不起作用,并返回相同的错误.打开地图也一样.它在PhoneGap测试应用程序中有效,但在部署时无效.

地图代码:

$scope.openmaps = function() {
    var address = $scope.person.adres + ", " + $scope.person.plaats; …
Run Code Online (Sandbox Code Playgroud)

ios cordova apple-maps ionic-framework

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

如何在iOS 10中获取通话记录

我们怎样才能获得通话记录iOS 10.我想使用我的应用来跟踪来电和去电.

iphone ios ios10

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

标签 统计

android ×2

cordova ×2

ios ×2

ajax ×1

apple-maps ×1

config ×1

css ×1

html ×1

ionic-framework ×1

ios10 ×1

iphone ×1

jquery ×1