从其他网站获取数据时我遇到了一些问题.在这种情况下,我想从预订引擎网站获取预订数据,他们希望通过Google跟踪代码管理器将数据传递给我.当他们只需要GTM代码时,我真的不明白我该怎么做.我应该在服务器中创建什么来通过Google跟踪代码管理器从预订引擎获取数据?
这是插图:
我有两个名为sites1.com和sites2.com的网站.在sites1.com中,我使用Google跟踪代码管理器脚本来推送表单提交数据,如全名,姓氏,电子邮件等.在有人提交表单后,我想通过Google标签将sites1.com中的提交数据发送到sites2.com经理.我的问题是如何在我的sites2.com中的sites1.com中提交表单后获取数据?
请有人知道如何解决我的问题.提前致谢 .
我对CSS动画的动画延迟有问题.我有3张图片,我想幻灯片播放.插图是,图像1到图像2需要15秒才能改变,图像2到图像3需要15秒才能改变,图像3要回到图像1需要30秒,在第一次循环之后,我想让幻灯片结束图像3使图像1到图像2仍然是15秒,图像2到图像3仍然是15秒,当图像3加载时,无需返回到图像1.我尝试了这个代码,但它给了我15秒的延迟到所有图像.这是我的代码:
ul {
list-style: none;
margin: 0;
padding: 0;
position: relative;
}
li {
position: absolute;
opacity:0;
}
li {
animation: xfade 45s infinite;
}
li:nth-child(2) {
animation-delay:15s;
}
li:nth-child(3) {
animation-delay:30s;
}
@keyframes xfade{
3%{opacity:1}
33% {opacity:1;}
36%{opacity:0}
}Run Code Online (Sandbox Code Playgroud)
<ul>
<li><img width="500" height="500" src="http://lorempixel.com/500/500/sports" alt="pic1"></li>
<li><img width="500" height="500" src="http://lorempixel.com/500/500/people" alt="pic2"></li>
<li><img width="500" height="500" src="http://lorempixel.com/500/500/transport" alt="pic3"></li>
</ul>Run Code Online (Sandbox Code Playgroud)
我想根据上面的插图延迟我的动画.任何人都可以帮我解决这个问题?谢谢你.
我有JSON stringify数据,如下所示:
[{"availability_id":"109465","date":"2017-02-21","price":"430000"},{"availability_id":"109466","date":"2017-02-22","price":"430000"},{"availability_id":"109467","date":"2017-02-23","price":"430000"}]
Run Code Online (Sandbox Code Playgroud)
我只想获得该数据的价格.我试过这种方式,但它不起作用.
var stringify = JSON.stringify(values);
for(var i = 0; i < stringify.length; i++)
{
alert(stringify[i]['price']);
}
Run Code Online (Sandbox Code Playgroud)
我怎么能这样做?
我有一些像这样的字符串.
$str = '14032017';
Run Code Online (Sandbox Code Playgroud)
我想将其转换为日期格式并将结果显示为14-03-2017
我已经试过这个但仍然没有用:
<?php
$str = '14032017';
$strdate = strtotime($str);
$date = date('d-m-Y',$strdate);
echo $date;
?>
Run Code Online (Sandbox Code Playgroud)
我怎么能这样做?
在IE 11中调用函数时出现一些错误。在我的情况下,我在一个<script>标记中包含两个脚本。
这是我的功能:
<script>
function test()
{
alert("oke");
var currency = $('#curr_drop').val();
var total_room_qty = calculate_amount(currency); // total all room
var btn_class = $('#book_button').prop('class');
var this_qty = $(this).val();
var this_plan_type = $(this).data('plan-type');
var this_plan_id = $(this).data('plan-id');
var this_plan_day = $(this).data('plan-day');
}
function calculate_amount(currency = 'IDR')
{
//alert("ok");
var nights = $('[name="nights"]').val();
var total_amount = 0; var total_room_qty = 0; var total_qty_room_id = 0;
console.log('nights: '+nights);
return total_room_qty;
}
</script>
Run Code Online (Sandbox Code Playgroud)
我test从以下代码调用该函数:
<select name="qty" class="mb10" onchange="test.bind(this)()" data-plan-type="rate" data-plan-id="38" …Run Code Online (Sandbox Code Playgroud)