我正在修改React Native,我试图用URL中的图像库简单地显示图像.当我运行它时,所有显示的是"React Native"文本,但没有图像.我究竟做错了什么?
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Image,
Text,
View,
} = React;
var AwesomeProject = React.createClass({
render: function() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
React Native
</Text>
<Image
source={{uri: 'http://facebook.github.io/react/img/logo_og.png'}}
/>
</View>
);
}
});
Run Code Online (Sandbox Code Playgroud) 我正在为一位朋友(www.texasfriendlydds.com)建立一个网站,并试图让他们对谷歌据称喜欢的Rich Snippets有优势.这是一所防御性驾驶学校,在奥斯汀地区有10个地点.我已将schema.org代码放在每个位置的地址中,但在搜索"防御性驾驶奥斯汀"时 - 我没有看到列出的任何位置.我为每个位置提供了以下10个代码(每个位置的地址不同):
<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Texas Friendly Defensive Driving</span><br />
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">13201 Ranch Road 620</span><br />
<span itemprop="addressLocality">Austin</span> <span itemprop="addressRegion">TX</span> <span itemprop="postalCode">78750</span>
</div>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue">4.6</span> stars - based on <span itemprop="reviewCount">24</span> reviews
</div>
Free meal w/ <span itemprop="priceRange">$40 tuition</span><br /><br />
<meta itemprop="openingHours" content="Thursdays 3:30pm - 9:30pm"><b>Thursdays 3:30pm - 9:30pm</b><br />
</div>
Run Code Online (Sandbox Code Playgroud)
此外,在页面底部,我汇总了所有评论,试图获得有机搜索丰富的片段星级评分无济于事.我将我的代码直接与以下网站进行了比较: - http://www.microdatagenerator.com/aggregate-rating-schema-generator/
它们完全相同(减去值).您可以通过Googling'聚合评级架构'找到他们的片段,并找到第2个列表,其中包含丰富的片段星和956个评分.有一次,我读到你需要出示你的评级证明,但是这个网站没有这样做而且他们有.
我使用过谷歌结构化数据测试工具(https://developers.google.com/structured-data/testing-tool/),一切都很好.那么为什么在世界上我没有看到任何结果呢?
seo structured-data rich-snippets schema.org google-rich-snippets
我在我的Gemfile中添加了一些宝石,特别是activerecord,sinatra-activerecord,sqlite3,shotgun和tux.当我运行'捆绑安装'时,我得到了这个奇怪的错误,似乎没有关于它的任何Googleable信息.这是我得到的错误:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
make "DESTDIR=" clean
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
make "DESTDIR="
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
make failed, exit code 69
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.1/gems/bond-0.5.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/bond-0.5.1/gem_make.out
An error occurred while installing bond (0.5.1), and Bundler cannot continue.
Make sure that `gem install bond -v …Run Code Online (Sandbox Code Playgroud)