如何在保持其父级隐藏的同时显示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) 我想显示这种类型的分页控件,如图中所示,我得到字符串数组的长度,我想显示长度作为分页控件,白点作为页数.请帮助
希望有人能提供帮助.
我正在开发一个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)
我发现这非常奇特,在搜索了所有类似的问题后,我都没有回答.
我究竟做错了什么?
我一直在努力解决这个问题.在人们从弹出窗口按"呼叫"后,我正试图打电话.有趣的是,当他们点击电话号码时,它会直接拨打电话.但当他们点击"呼叫"时,控制台返回:
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)