Exercise1

在日常的前端Web中,常常会遇上从数据库读取出来的数据。需要经过转换才能作为参数传递过去给某个方法使用;例如;某个行数需要的参数是
objs:1,2,3#Saab,Volvo,BMW
这里则是将它的id编号以及它的值作为一个对象传递。那么我们就必须转换好这个objs
接下来:


<div id="objs"></div>


<script>
//将mycars组成一个对象1,2,3#Saab,Volvo,BMW
var mycars = new Array();
mycars[0] = "Saab";
mycars[1] = "Volvo";
mycars[2] = "BMW";
mycars[3] = "lanbojimo";

var carObj='';
for (i=1;i<mycars.length+1;i++){
if(i<mycars.length){
carObj= carObj+i+',';
}
else{
carObj= carObj+i+"#";
}
}
for (i=0;i<mycars.length;i++){
if(i<mycars.length-1){
carObj= carObj+mycars[i]+',';
}
else{
carObj= carObj+mycars[i]+"";
}
}
// console.log(carObj);
$("#objs").text(carObj);


</script>
exercise1 Using Search Engines Prerequisites, Goals, and Outcomes Prerequisites: Before you begin this exercise, you need mastery of the following: • HTML basics: Understand what the Web is and how it works • HTML basics: Understand how web pages are constructed • HTML basics: Understand how search engines work Goals: This assessment will give you practice in using search engines to find specific pieces of information on the World Wide Web and in evaluating web page design. Outcomes: By successfully completing this assignment, you will demonstrate mastery in the following: • Using search engines to find information on the World Wide Web • Evaluating web page design • Understanding the differences between several search engines • Identifying the Uniform Resource Locator (URL) for Web resources Description - Part A Using the search engine of your choice, find URL's for the following: 1. The home pages for three major industrial corporations http://findarticles.com/ http://www.irs.gov/ http://www.irs.gov/ 2. The home page for a college or university http://www.whu.edu.cn/ http://www.tsinghua.edu.cn/ http://www.pku.edu.cn/ 3. The season schedule for a college or professional sports team http://en.wikipedia.org/wiki/College_football 4. The season schedule for a professional arts group (symphony, ballet company, opera company, etc.) http://www.tcg.org/international/resources/other_organizations.cfm 5. A picture of the Washington Monument in Washington, D.C. http://www.google.cn/imgres?imgurl=http://www.rentatour.com/Admin/ManageTour/PARTIES_%2520EVENT/Discover%2520Washington%2520D.C.%2520(Click%2520for%2520Slideshow)/dc_washingtonMonument_01.jpg&imgrefurl=http://www.rentatour.com/slideshow.aspx%3Ftour_detail_id%3D64%26tour_type%3D3&h=400&w=300&sz=12&tbnid=uEi9o3Lb_n6ITM::&tbnh=124&tbnw=93&prev=/images%3Fq%3DWashington%2BMonument%2Bin%2BWashington,%2BD.C%2Bpicture&hl=zh-CN&usg=__R8ekMtk98odW4hadJ4ND5aqQAnw=&sa=X&oi=image_result&resnum=2&ct=image&cd=1 6. A Web page that is, in your opinion, well-designed, interesting, and attracts a lot of "hits" www.google.com.cn 1 The format of it is very clear 2 I can log in it very quickly 3 The picture is very beautiful 4 I can find what I want quickly 5 It is a dynamic web.It is very interesting 7. A Web page that is, in your opinion, poorly designed http://www.whu.edu.cn/ 1 The format of it isn’t very clear 2 I can’t log in it very quickly 3 The picture isn’t very beautiful 4 I can’t find what I want quickly 5 It isn’t a dynamic web.It is very boring. Note that with the URLs for #6 and #7, you should include a list of five things that make the Web pages well-designed and poorly-designed, respectively. Description - Part B Pick one of the topics listed below and conduct three searches on that topic. Each search should use a different search engine (the choice is yours). Record the URLs for the top five sites found by each search (that is, 15 URLs in total). • Stamp collecting • Model railroading • The Golden Gate Bridge Visit each of the top five sites found by each search engine. Then, write a brief statement comparing and contrasting the results of the three searches. State which search engine yielded the best results and list the factors that influenced your opinion www.baidu.com 1 http://www.levelpad.com/791/102830.htm 2http://www.oxford.com.cn/study/exam/yingyu-zuowen/chuzhong-yingyu-zuowen/2006-05-04/12228.html 3 http://www.levelpad.com/791/102830.htm 4 http://www.9sky.com/music/artist/trks/7626 5http://www.ew.com.cn/readonline/jsb/xxjsb/2006/04/2007/01/2007-01-111163.html www.google.com 1 http://en.wikipedia.org/wiki/Stamp_collecting 2 http://www.usps.com/shop/stampcollecting.htm 3http://scholar.ilib.cn/Article.aspx?AIT=QCode&AI=sxda200104014&A=sxda200104014 4 http://www.9sky.com/music/artist/7626 5 http://english.cri.cn/4026/2008/10/11/1481s413585.htm www.yahoo.com 1 http://www.amazon.com/Stamp-Collecting-Stephen-R-Datz/dp/088219030X 2http://www.amazon.com/Stamp-Ultimate-Collecting-Activity-Book/dp/0811833313 3 http://www.mdcstamps.com/safe-parat-stockbooks.htm 4 http://stampcollecting.in/ 5http://rds.yahoo.com/_ylt=A0oGkwymrllJDRwBoMJXNyoA;_ylu=X3oDMTEzb3Z0NzVoBHNlYwNzcgRwb3MDNQRjb2xvA3NrMQR2dGlkA0Y5MTlfMTEz/SIG=129lg6q5d/EXP=1230700582/**http%3a//www.microdatacom.net/safe-parat-stockbooks.htm The web yielded by www.baidu.com and www.google.com is full of advertisement .I think there are useless.However the web yielded by www.yaohoo.com is more useful Tasks To complete this exercise, begin by opening a search engine and performing a search on the first of three companies for requirement number 1 in Part A above. When you find a web site that you would like to use, copy and paste its URL into a text file (You can use Notepad as your text editor) instead of retyping the URL. This approach saves time and reduces the probability of creating a typographical error. Repeat this process until you have found URLs for all of the required web sites. As you build your text file, be sure to save your work often. Submission Submit only the following file: • ex1.txt
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值