当用户在BING上点击我的广告时,他们就会
@weakify(self);
RACSignal *enabled = [[RACObserve(self, viewModels)
// Map _each_ array of view models to a signal determining whether the command
// should be enabled.
map:^(NSArray *viewModels) {
RACSequence *selectionSignals = [[viewModels.rac_sequence
map:^(ViewModel *viewModel) {
// RACObserve() implicitly retains `self`, so we need to avoid
// a retain cycle.
@strongify(self);
// Observe each view model's `state` property for changes.
return RACObserve(viewModel, state);
}]
// Ensure we always have one YES for the -and below.
startWith:[RACSignal return:@YES]];
// Sends YES whenever all of the view models are selected, NO otherwise.
return [[RACSignal
combineLatest:selectionSignals]
and];
}]
// Then, ensure that we only subscribe to the _latest_ signal returned from
// the block above (i.e., the observations from the latest `viewModels`).
switchToLatest];
和BING用值替换参数。 我希望这些值在用户导航到我网站上的某些页面时传递给用户(fe mydomain.com/product1.html),甚至当他被重定向到另一个站点时(fe offer.com/offer.html) 。 所以在我的主页上,我按以下方式放置了特定的链接:
"www.mydomain.com/home.html?s1={MatchType}&s2={CampaignId}&s3={Query String}"
不幸的是,这不起作用,我错过了什么? 谢谢!
答案 0 :(得分:0)
这里的问题是文件是.html而不是.php,所以它不会被PHP解析。
If you want PHP to also work on .html, add this like to your .htaccess file:
AddType application/x-httpd-php .html
OR
将文件重命名为products1.php& offer.php,喜欢:
www.mydomain.com/product1.php?s1=<?php echo $_GET['s1'];?>&s2=<?php echo $_GET['s2'];?>&s3=<?php echo $_GET['s3'];?>
www.offer.com/offer.php?s1=<?php echo $_GET['s1'];?>&s2=<?php echo $_GET['s2'];?>&s3=<?php echo $_GET['s3'];?>
点击此链接$_GET problem in .html url了解更多信息