待宵草的歌词好的中文歌中文。。。。

额,不好意思,再问一下:夜来香有多少种?_百度知道
额,不好意思,再问一下:夜来香有多少种?
三字:急急急
提问者采纳
  夜香种植物别名较见:
1、紫茉莉科紫茉莉属植物紫茉莉别名;
2、茄科夜香树属植物夜香树别名;
3、石蒜科晚香玉属植物晚香玉别名;
4、含夜香歌词《夜晚妆》;
5、柳叶菜科月见草属植物待宵草别名
种文名:夜香
种拉丁名:Telosma cordata (Burm. F.) Merr.
科文名:萝藦科
科拉丁名:Asclepiadaceae
属文名:夜香属
属拉丁名:Telosma
内布:华南区
外布:亚洲热带亚热带及欧洲、美洲栽培
【名】Telosma cordarum Merr.
【别名】夜香花、夜兰香
【类】萝摩科夜香属
【形态】藤状灌木枝柔弱毛具乳汁叶;叶片宽卵形、形至矩圆状卵形<img class="word-replace" src="/api/getdecpic?picenc=0a5f~9.5cm宽3~8cm先端短渐尖基部深形全缘基掌状脉 7~9条边缘脉毛伞形状聚伞花序腋花至30朵;花冠裂片5矩圆形黄绿色清香气夜间更甚故夜香、夜香花名;副花冠5裂肉质短于花药着于合蕊冠顶端渐尖;花粉块每室1椭圆形直立蓇葖披针形<img class="word-replace" src="/api/getdecpic?picenc=0a5f.5cm外皮厚毛种宽卵形约8mm顶端具白色绢质种毛
【境与习性】夜香林或灌木丛喜温暖、湿润、阳光充足、通风良、土壤疏松肥沃环境耐旱、耐瘠耐涝耐寒冬季落叶停止;春暖发枝叶每节腋芽或花芽随着断发侧枝并抽花序般<img class="word-replace" src="/api/getdecpic?picenc=0a007a-10月陆续花花气味芳香夜间更香浓冬季结
【繁殖】主要用扦插繁殖用株播种繁殖株春季结合换盆进行播种<img class="word-replace" src="/api/getdecpic?picenc=0ad月播种播2周发芽
扦插繁殖夜香1.选插条应选择健壮或者病虫害枝条同植株应选择部向阳枝条要求枝条节间较短、枝叶粗壮、芽尖饱满宜选用即花枝条徒枝
2.选基质用泥炭土、腐叶土加沙别按3∶3∶4配制配制床土具提高床温、保水、通气、肥沃、偏酸等特点适宜枝条根发芽
3.处理插条扦插前用ABT根粉等药剂处理插条促进根效插穗截<img class="word-replace" src="/api/getdecpic?picenc=0a5f厘米至12厘米段面带2至3芽插穗部切口宜节<img class="word-replace" src="/api/getdecpic?picenc=0a厘米处切口要平滑剪部叶片仅留顶部2至3叶片插深般3厘米左右宜
4.创根条件其适宜根温度20℃至24℃般土温比气温高3℃至5℃根利插床空气相湿度80%至90%利根并要求光照<img class="word-replace" src="/api/getdecpic?picenc=0a007a%左右水应适宜扦插初期水稍期稍干本露扦插适期5月初至6月旬值较气候能较满足插条根所需温、湿度条件
5.加强插管理插应浇透水用塑料薄膜覆盖放较荫蔽处或薄膜撒乱草防阳光直射并且夜间增加光照助其扦插每放风1至2补充所需氧气并防止病害发要经喷水保持插床适度湿润喷水量否则插床湿影响插条愈合根待插条新根2厘米至3厘米即适移植盆花冬季南京区应搬入室内养护
【栽培】盆栽
1.配制盆土夜香喜疏松、排水良、富机质偏酸性土壤其盆土般用泥炭土或腐叶土3份加粗河泥2份少量农家肥配盆栽底部约1/5深填充颗状碎砖块利盆排水部用配盆土栽培
2.适宜环境盆栽夜香要求通风良环境条件<img class="word-replace" src="/api/getdecpic?picenc=0ad月初至9 月底宜放院内阳光充足或阳台养护其虽喜阳光充足夏季午应避免烈暴晒夜香3.施肥其程应每隔10至15施液肥<img class="word-replace" src="/api/getdecpic?picenc=0ad月旬始每半月施稀薄液肥<img class="word-replace" src="/api/getdecpic?picenc=0af月旬起即保证断花能施用春泉883或惠满丰等高效腐殖酸液肥则效更
4.调水其夏季旺季除施足肥料外盆土必须保持经湿润必要浇2水若幼苗每应向叶面喷水1至2
5.适温每10月旬应其移入棚室内棚室温度要求保持 8℃至12℃温度低于5℃叶片枯黄脱落直至死亡
6.换盆换盆宜春季4月初室前进行换盆应掉部旧土根换新培养土并进行重剪促发新枝换盆要保持盆土湿润盆内能积水换盆若发现嫩叶略垂要及浇水
7.调整株形栽培管理需搭设棚架植株棚要及打顶促使枝花要及剪残花梗并加施肥料花谢应枯干枝叶密枝条剪徒进行截短处理
病害:发煤污染病轮纹病用50%甲基托布津湿性粉剂500倍液喷洒
虫害:蚜虫、介壳虫粉虱危害用50%杀螟松乳油1000倍液、王星、氯氰菊酯快杀灵等防治效较
病虫害防治目前发现危害夜香虫害主要螨类介壳类病害枯萎病防治螨类采用抗螨23乳油800倍液、73%克螨特2000倍液等防治介壳虫用40%乐乳剂600~800倍液防治枯萎病采用枯萎立克600~800倍液、50%菌灵600倍液等发现枯萎病株应及清除带园外烧毁并翻病株周围土壤撒石灰<img class="word-replace" src="/api/getdecpic?picenc=0ad月再补种
【用途】栽培供观赏夜香枝条细夏秋花黄绿色花朵傍晚放飘阵阵扑鼻浓香南用布置庭院、窗前、塘边亭畔同新鲜花花蕾供食用种半野蔬菜具清肝明目功效治疗目赤肿痛麻疹眼、角膜翳等
亦入药详见文
【花语】空想 危险快乐
  [编辑本段]2. 药 材
  【药名】夜香夜香【源】萝藦科夜香属植物夜香Telosma cordatum (Brum. f.) Merr.叶、花、入药叶随采花、别于花期、期采集晒干
【性味归经】甘、淡平
【功能主治】
清肝明目翳拔毒肌
花、叶、:用于急慢性结合膜炎角膜炎角膜翳;麻疹引起结膜炎
鲜叶:外用治已溃疮疖脓肿脚臁外伤糜烂
【用用量】花、叶1~2钱水煎服;或用1(剖)水煎服鲜叶外用适量水烫贴(脚臁外伤糜烂用鲜叶锤猪肥肉敷患处)
注:夜间停止光合作用夜香排量废气健康极利晚应夜香花丛前久留
【摘录】《全草药汇编》
注:夜香种利于体健康植物别放室内影响睡眠
【应用】异香扑鼻浓烈香气驱蚊特效摆放于窗台阳台
提问者评价
你比前前前一个还厉害!
其他类似问题
夜来香的相关知识
按默认排序
其他1条回答
没呢新珍珠吊兰
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁夜来香_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
3页免费6页免费3页免费1页&#165;0.502页&#165;1.002页免费2页免费2页免费2页免费3页免费
喜欢此文档的还喜欢3页免费2页免费42页1下载券67页1下载券2页1下载券
夜来香|农&#8203;业&#8203;创&#8203;业
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢张学友吻别歌词中文的_百度知道
张学友吻别歌词中文的
提问者采纳
歌曲:吻别歌手:V.A.(合辑)前尘往事云烟 消散彼眼前连说再见 看见些哀怨给我切 敷衍笑越邪 我更狂野总刹间 些解 说能实现转眼 发现脸 已经陌再像前我世界始雪 冷让我冷连隐藏遗憾 都明显我吻别 街 让风痴笑我能拒绝我吻别 狂乱夜 我 等着迎接伤悲想要给思念 像风筝断线飞进世界 温暖视线我已经看见 悲剧演剧终没喜悦 我仍躲梦面
其他类似问题
按默认排序
其他1条回答
吻别词 何启弘曲 殷文琦前尘往事云烟消散彼眼前连说再见看见些哀怨给我切敷衍笑越邪我更狂野总刹间些解说能实现转眼发现脸已经陌再像前我世界始雪冷让我冷连隐藏遗憾都明显我吻别街让风痴笑我能拒绝我吻别狂乱夜我等著迎接伤悲想要给思念像风筝断线飞进世界温暖视线我已经看见悲剧演剧终没喜悦我仍躲梦面总刹间些解说能实现转眼发现脸已经陌再像前我世界始雪冷让我冷连隐藏遗憾都明显我吻别街让风痴笑我能拒绝我吻别狂乱夜我等著迎接伤悲我吻别街让风痴笑我能拒绝我吻别狂乱夜我等著迎接伤悲
吻别的相关知识
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁【翻译】Tizen Sample Web App官方文档说明 - weimingtom的待宵草 - ITeye技术网站
博客分类:
Tizen的三个官方游戏示例,参见:
--------------------------------------------------
see:https://developer.tizen.org/resources/sample-web-applications/hang-man
原文见:https://developer.tizen.org/resources/sample-web-applications/hang-man
Sample Web App: Hang On Man
示例Web应用:Hang On Man
This is an implementation of the classic word guessing game. Features of this game, that may be of interest to web application developers, are:
这是一个经典猜单词游戏的实现。这个游戏可能让web应用开发者感兴趣的特性有:
Internationalization using either the chromium API (if present) or a JavaScript implementation
使用chromium API(如果存在)或一个JavaScript实现的国际化
Determining the computed style property value of an object, as opposed to the CSS value
确定一个对象的计算样式属性值,与CSS值相反
Using document fragments for DOM manipulation, without costly re-rendering
把文档片段用于DOM操纵,不需要昂贵的重新渲染
Using local storage to save state
使用本地存储来保存状态
Reading data from local JSON files
从本地JSON文件中读取数据
CSS transforms, transitions, and animations
CSS变换、过渡和动画。
Serializing animation with the "transitionEnd" event
用“transitionEnd”事件序列化动画
Using a body class to change the appearance of the entire app at once (see the "Night colors" image below)
使用一个body类马上改变整个应用的外观(见下面的“夜晚颜色”图片)
Tricks with images: image masks, border images, linear and radial gradients, SVGs
对图片的技巧:图片遮罩,边线图片,线性和径向渐变,SVG
Screen Shots
Title screen
Game screen
Night colors
In js/getMessages.js, there is code that provides a function window.getMessage(), with the same API as the window.chrome.i18n.getMessage() function. If the chromium function exists (such as running as an extension within chromium or Google Chrome), the implementation simply uses that function. If not, there is a simple implementation that provides most of the chromium functionality (but with some simplifications on message argument handling).
在js/getMessages.js中,有一段代码提供一个函数window.getMessage(),使用和window.chrome.i18n.getMessage()函数相同的API。如果chromium函数存在(诸如运行作为chromium或Google Chrome内的一个扩展),那么实现简单地使用那个函数。如果不是,则有一个简单实现,它提供大部分chromium的功能(但在消息参数处理上有一些简化)
Computed Style
For each style property, there is a CSS value explicitly provided in a .css document. This is the value you will get if you check a HTMLElement's style object. In many cases, the value will be en empty string (""), if there is no explicit mention of the property in any CSS file.
对于每个样式属性,存在一个CSS值显示地被提供在.css文档中。这是你将获得的值如果你检查一个HTMLElement的style对象。在许多情况下,该值将是一个空字符串,如果在任意CSS文件中没有显式地提及该属性。
In some cases, you need to know the "computed value", which is the value computed by the rendering engine based on current window size, etc. In js/hangonman.js, we calculate the computed value with the following code (this does not work on all browsers in exactly the same way):
在一些情况下,你需要知道“被计算的值”,它是渲染引擎基于当前窗口大小等等计算出来的值。在js/hangonman.js,我们用以下代码计算被计算值(它不全在所有浏览器上以完全相同的方式工作):
document.defaultView.getComputedStyle(element).getPropertyValue(property);
Document fragments
Whenever you change the DOM (add an element, change a class, etc), some or all of the view is re-rendered. In Hang On Man, we create divs dynamically for each alphabet letter, to support languages with a different number of letters. One approach is to wait until the DOM content is ready, then append a series of letter divs to the document, each with its own collection of classes and style values. This is works, but would require many rendering passes, delaying the final appearance of the application.
每当你改变DOM(添加一个元素,改变一个类,等等),一些或所有视图被重新渲染。在Hang On Man中。我们为每个字母表字符动态地创建div,以支持使用不同数量字符的语言。一种方法是等待直至DOM内容准备好,然后尾加一系列字符div到文档中,每个带有它自己的class集合和style值。这是可行的,但将需要许多渲染传递,拖延应用程序的最终出现。
In Hang on Man, we use the concept of document fragments to create a DOM subtree outside of the document and add the whole thing at one time, incurring only one render pass. The fragment can be constructed even before the DOM is ready, allowing computation to start once the script is loaded.
在Hang on Man中,我们使用文档片段的概念在文档的外面创建一个DOM子树,并一次性地添加全部东西,仅导致一次渲染传递。片段甚至可以在DOM准备好之前被构造,允许一旦脚本被加载时就马上开始计算。
var fragment = document.createDocumentFragment();
for (i = 0; i & ++i) {
var child = document.createElement("div");
addStylesAndClasses(child);
fragment.appendChild(child);
Once the DOM is loaded:
一旦DOM被加载:
var parent = document.getElementById("parent");
parent.appendChild(fragment);
With this, all the children of the fragment are now direct children of the parent (the fragment is never actually part of the DOM).
这样,fragment的所有儿子现在是parent的直接儿子(实际上fragment从不是DOM的一部分)
Local Storage
We save game state persistently with the localStorage object. In js/hangonman.js, there are functions, initGameState(), restoreGameState(), and saveGameState(), that write to and read from this object. Since localStorage information is not sandboxed per application, we preface each datum with "com.intel.hom." (hom == Hang On Man) to avoid clashes.
我们用localStorage对象持久地保存游戏状态。在js/hangonman.js中,有一些函数initGameState(),restoreGameState(),和saveGameState(),它们写入和读取这个对象。因为在每个应用程序中localStorage的信息不被沙箱,所以我们对每个基准前面加上“com.intel.hom.”(hom是Hang On Man的缩写)以避免冲突。
Note that arrays and other complex data structures can be stored in local storage by marshalling to and from strings, using JSON.stringify() and JSON.parse(). See restoreSettings() for an example usage.
注意数组和其它复杂数据结构可以通过使用JSON.stringify()和JSON.parse()编集到字符串和从字符串中编集以被保存在本地存储中。参见restoreSettings()以获得一个示例用法。
JSON files
Hang On Man contains several word lists. Players can select for different kinds of words (animals, nations, win terms, common phrases, etc). Each word list is stored in a separate JSON file. We read these files using XmlHttpRequest(). In the current code, we read all lists synchronously and in series. See initWordLists(). An obvious next step in speeding the initial app load time would be to load these lists on demand and in the background, using asynchronous requests or even a webworker.
Hang On Man包含几个单词列表。玩家可以选择不同类型的单词(动物、国家、酒术语(注:应为wine terms),一般短语,等等)。每个单词列表被存储在一个单独的JSON文件中。我们使用XmlHttpRequest()读取这些文件。在当前代码中。我们同步地和依次地读取所有列表。参见initWordLists()。在加速最初应用加载时间的明显下一步将是根据需要加载这些列表并且在后台中,使用异步请求或者甚至使用一个webworker。
One point to consider, when developing applications with XHRs, is that pages loaded with the file:// uri scheme are not allowed to request files from different domains, even from localhost (local files). Ways to work around this security check are:
当使用XHR开发应用时,一个要考虑的点是使用file://的uri模式加载的页面不被允许从不同的域中请求文件,甚至是从本地(局部文件)。绕过这个安全检查的方法有:
Start a local web server and access your app with a http:// uri rather than a file:// uri
启动一个web服务器并用一个http://的uri访问你的应用,而非一个file://的uri
Load your app as an extension [chromium only]
加载你的应用作为一个扩展【只适用于chromium】
Use the --disable-web-security switch went running chromium-browser. [chromium only].
使用--disable-web-security开关去运行chromium浏览器。【只适用于chromium】。
Transforms, Transitions, and Animations
变换、过渡和动画
A transition steps between two values of a property over time. In this case, we go from invisible (opacity is zero) to shown (opacity is one). As the div fades in, it goes from large (3x) to normal size. The transition is triggered by adding the "shown" class to the element. Note, also, that z-index changes from 0 to 20, so that when it is invisible, it is also stacked behind other divs, so it does not capture mouse events.
随时间逝去一个过渡在一个属性的两个值之间步进。在这种情况下,我们从不可见(透明度为0)变成显示(透明度为1)。当div淡入时,它从大(3x)转为普通大小。通过添加“shown”类到该元素来触发过渡。注意,同样,z索引从0改变至20,致使当它不可见时,它也被堆叠在其它div后面,所以它不捕捉鼠标事件。
#letters {
z-index: 0;
opacity: 0;
-webkit-transform: scale(3, 3);
-webkit-transition: opacity 2s ease-in, -webkit-transform 2s ease-
letters.shown {
z-index: 20;
opacity: 1;
-webkit-transform: scale(1, 1);
An example of two animations at the same time with different durations. The effect here is for the birds in the game to hover with small, apparently random movements.
同一时间不同持续时间的两个动画的示例。这里的效果是让游戏中的小鸟们以小的、明显随机的动作盘旋。
@-webkit-keyframes move-horiz {
0% {left: 0
-webkit-transform: skewX(0deg);}
50% {-webkit-transform: skewX(1deg);
75% {-webkit-transform: skewX(.5deg);
100% {-webkit-transform: skewX(-.75deg);
@-webkit-keyframes move-vert {
0% {top: 0}
50% {top: 5}
100% {top: -5}
.dialog.shown .inner {
-webkit-animation: move-horiz 2.5s infinite alternate ease-in-out,
move-vert 1.6s infinite alternate ease-in-
In some cases, we need to know when a transition is complete. For the clouds scudding across the sky, once each cloud has reached the side and its movement has ended, they are destroyed with a call to destroyCloud(). Note, also, the use of the classList property to manipulate classes in a standard HTML5 way.
在一些情况下,我们需要知道过渡在什么时候完成。对于在天空中平稳移动的云,一旦每团云已经到达边沿而它的动作已经结束,它们就会被destroyCloud()的调用销毁。还有注意,使用classList以通过一种标准的HTML5方式来操纵类。
var cloudElem = document.createElement("div");
var classList = cloudElem.classL
classList.add("cloud");
cloudElem.addEventListener('webkitTransitionEnd', destroyCloud, false);
Body classes
The term "body classes" refers to the use of a class on the body element or some outer element to control the appearance of many child elements. In Hang on Man, we can apply a nocturnal theme just by adding the "night" class to &body&. See css/hangonman.css. A simplified example:
术语“body类”是指在body元素或一些外部元素上使用一个class来控制许多子元素的外观。在Hang on Man中,我们可以只通过添加"night"类到&body&来应用一个夜晚主题。参见css/hangonman.css。一个简化示例:
&div id="sky"&
&div class="cloud"&&/div&
&div class="cloud"&&/div&
background-image: url("daysky.png");
background-color:
.night #sky {
background-image: url("nightsky.png");
.night .cloud {
background-color:
Tricks with images
使用图片的技巧
Gradients:
background-image: -webkit-gradient(radial,
center bottom, 1,
center bottom, 600,
from(#bce9fd),
color-stop(0.60, #43c0fa),
to(#3384c0));
background-image: -webkit-gradient(linear, left top, left bottom,
from(rgb(254, 220, 112)), to(rgb(217,86,78)));
Image masks:
图片蒙版:
#skyline {
background-color: #333;
-webkit-mask-image: url("../images/skyline.png");
Border images. These are used in several places to enable graphics to stretch to accommodate translation strings of different lengths. For example, the "New Game" dialog, which looks like a bed sheet held by two birds, is stretched to the width of the longest category. The "New Game" and "Quit" buildings, on either side of the screen, are also stretched, but use the "round" method to show an integral number of building windows across the width of the building.
边框图片。这些被用在几个地方以使图形能伸缩以适应不同长度的翻译字符串。例如,“新游戏”对话框,它看起来像一个由两只鸟拉着的床单,被拉伸至最长分类的宽度。“新游戏”和“退出”建筑物,在屏幕的两侧,也是被拉伸的,但使用“round”方法来显示横跨建筑物宽度的建筑物窗口的整数数量。
#newGame.control {
border-width: 94px 20px 5px 20
-webkit-border-image: url("../images/building1.svg") 94 20 5 20
.dialog .inner {
border-width: 145px 95px 35px 75
-webkit-border-image: url("../images/sheet2.png") 145 95 35 75
Using Scalable Vector Graphics (SVG)
使用可缩放矢量图形(SVG)
#myElement {
background-image: url("../images/cloud.svg");
--------------------------------------------------------------
Sample Web App: Annex
示例Web应用:Annex
The Annex application is a good example of how to design a person-against-person or person-against-machine web application. The UI was created using HTML and CSS and the AI engine is implemented completely in JavaScript.
Annex应用程序是一个如何设计一个人对人或人对机的web应用程序的好示例。使用HTML和CSS创建用户界面,而AI是完全通过JavaScript来实现。
The Annex application doesn't use any Tizen specific API calls, so it can be run in many popular browsers which support HTML5. The application consists of a view layer, written by HTML5, and a control layer, which contains the AI engine and the game process control module, written in JavaScript. It also uses the JQuery, a fast and concise JavaScript Library for rapid web development.
Annex应用程序不使用任何Tizen特定API调用,所以它可以运行在许多支持HTML5的流行浏览器上。应用程序由一个视图层,用HTML5编写,以及一个控制层,它包含AI引擎和游戏处理控制模块,在JavaScript中编写,组成。它还使用JQuery,一个用于快速web开发的快速和简洁的JavaScript库。
The Annex game demonstrates some interesting features:
Annex游戏演示一些有趣的特性:
Javascript implementation of a game AI engine
一个游戏AI引擎的Javascript实现
Control DOM object dynamically with Javascript & CSS
用Javascript和CSS动态地控制DOM对象
Screen Shots
Welcome Screen
The AI engine is based on the Minimax Game(Adversarial) Tree algorithm. In game tree theory, searching depth and accuracy of the chessboard evaluation method are the most important aspects related to game AI ability. In Annex, the default searching depth is 3, implying the difficulty level of game, and can be increased to a higher value, like 4 or 5. The higher searching depth means higher difficulty, more CPU time and memory consumption, and slower computer player response. In the js/annex.js file, this is mapped to the "level" property:
AI引擎基于极大极小游戏(对抗)树算法。在游戏树理论中,棋盘计算方法的搜索深度和精确度是与游戏AI能力相关的最重要切面。在Annex中,默认搜索深度是3,暗示游戏的难度级别,并且可以被增加至更高的值,像4或5。较高的搜索深度意味着更高的难度,更多的CPU时间和内存消耗,以及更慢的计算机玩家响应。在js/annex.js文件中,它被映射至"level"属性:
For the evaluation method, Annex integrates three aspects: mobility, number of pieces, and position value.
对于计算方法,Annex整合三个切面:流动性、棋子数,以及位置值。
Mobility is how many places the current player could possibly set a stone.
流动性是当前玩家可能放置棋子在多少位置。
Number of pieces is how many of each player's markers are on the board.
棋子数是每个玩家在棋盘上的标记有多少。
Position value means how favorable each position is on the reversi board.
位置值意思是在黑白棋盘上每个位置有多有利。
In a reversi game, occupying gainful places is very important. In the js/annex.js file, the evaluation function is:
在黑白棋游戏中,占据有利位置是非常重要的。在js/annex.js文件中,计算函数是:
evaluate: function(place, _color, _board, _level, _heap)
The parameters:
"place" means where to set the stone
"place"意思是在哪里设置棋子
"_color" is the stone color
"_color"是棋子的颜色
"_board" is the chessboard before setting the stone
"_board"是在设置棋子之前的棋盘
"_heap" is the game tree data structures
"_heap"是游戏树数据结构
"_level" is a flag pointing out whether to stop searching the game tree.
"_level"是一个标志指出是否停止搜索游戏树。
At first, the function will set the stone on the board to get a new chessboard, and then, evaluate the new board by mobility and pieces value. The pieces value is made up of the value of the place where the pieces are set, as well as the number of pieces.
最初,函数将设置棋子在盘上以获得一个新的棋盘,然后,通过流动性和棋子的值计算新的棋盘。棋子值组成棋子被放置位置的值,以及棋子数量。
Then, the AI engine can evaluate each move and choose the best one. In js/annex.js, the function bestPlace(possible) does this:
然后,AI引擎可以计算每种移动并选择最佳的。在js/annex.js中,函数bestPlace(possible)做这件事:
ret = possible[0];
var value = this.evaluate(ret);
for (var p=1; p&possible. p++) {
var v = this.evaluate(possible[p]);
if (v & value){
ret = possible[p];
Here, the variable "possible" means a collection of possible setting places for a player, according to the Reversi rules.
这里,变量"possible"意思是一个玩家的一组可能放置位置。根据黑白棋的规则。
Control DOM object dynamically
动态控制DOM对象
In some cases, we need to make some DOM objects visible/invisible. For Annex, it used a css swither named "display_none":
.display_none {
z-index:-1;
We can use this to control whether DOM objects display on screen (with the Jquery Javascript library) like this:
我们可以使用它来控制DOM对象是否显示在屏幕上(使用Jquery Javascript库),像这样:
$('#go_visible').removeClass('display_none');
$('#go_invisible').addClass('display_none');
In Annex, this is used in many places, for example, in js/annex.js, when controlling the help panel:
在Annex中,它被用在许多地方,例如,在js/annex.js中,当控制帮助面板时:
showHelp: function() {
this.playSound('snd_navclick');
this.endConfigure();
$('#help').removeClass('display_none');
exitHelp: function() {
this.playSound('snd_navclick');
$('#help').addClass('display_none');
When you need to show the help panel, the showHelp() function makes the DOM object with the id attribute value "help" visible on screen. The exitHelp() function is called to disable it.
当你需要显示帮助面板时,showHelp()函数使id属性值为“help”的DOM对象在屏幕上可见。调用exitHelp()函数以屏蔽它。
-------------------------------------------------
Sample Web App: Counting Beads
示例Web应用:数珠子
Counting Beads is a simple web application built using HTML5, JavaScript, CSS3, and JQuery. It targets young kids, teaching them counting up to 50.
数珠子是一个简单的web应用程序,使用HTML5、JavaScript、CSS3、和JQuery构建。它目标为年轻儿童,教他们数数至50。
The game starts off showing the home screen, where you can either start the game directly or learn how to play. The game screen has 5 bars with 10 fruity beads each. 3 questions are randomly generated and the user needs to move the many corresponding fruit beads. On a correct answer, the game reinforces the child's confidence with positive phrases. If all 3 answers are correct, the game transitions to the "good job" screen, after a 7s delay, to allow the user to look through their answer or start over.
这个游戏从显示主屏幕开始,那里你可以直接地开始游戏或学习游戏规则。游戏屏幕右5个横杆各带10个水果珠子。随机地生成3个问题,而用户需要移动许多对应的水果珠子。在一个正确的答案上,游戏用正面的短语加强孩子的信心。如果所有三个答案是正确的,游戏过渡至“做得好”屏幕,在7秒延迟后,以允许用户仔细查看他们的答案或者重新开始。
Counting Beads showcases:
数珠子亮点:
the dynamic creation of the DOM elements: document.createElement()
DOM元素的动态创建document.createElement()
CSS3: -webkit- and -webkit-
CSS3:-webkit-和-webkit-
JQuery Animations: .animate(), .delay(), .fadeIn(), fadeOut() and .queue()/.dequeue()
JQuery动画:.animate(),.delay(),.fadeIn(),fadeOut()和.queue()/.dequeue()
The app also demonstrsate manipulation of CSS3 properties from javascript, such as manipulation of backgroundImage, element's height, width, positions, just to name a few. The app is internationalized according to Chrome i18n guidelines (usage of chrome.i18n.getMessage("messagename") ). For more details, refer to: /chrome/extensions/i18n.html
该应用还演示从javascript中操纵CSS3属性,诸如操纵backgroundImage、元素的高度,宽度,位置,只是命名了一些。应用根据Chrome的i18n指引来国际化(chrome.i18n.getMessage("messagename")的用法)。想获得更多细节,请参考:/chrome/extensions/i18n.html
Screen Shots
Home Screen
How To Play
Appreciation screen
Good job screen
做得好屏幕
weimingtom
浏览: 205871 次
来自: 广州
谢谢博主,翻译得很好哦
牙痛的彼岸:痹!
总结得很简练清晰啊,学习了!
恩,同样期待,毕竟是一代经典}

我要回帖

更多关于 歌词好的中文歌 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信