295AArithmeticoperators,7Assignmentoperator,6AsynchronousJavaScriptandXML(Ajax)requestingrangesdescendingparameter,284limitparameter,285operations,285–286renderfunction,286–287skipparameter,285startkey,285XMLHttpRequestobject,284BBlockstatements,12Booleantype,5Bracketnotation,20Buffer.
byteLengthmethod,175CchangeInStatefunction,123–124charAtmethod,30Contrastingexpression,6Controlstatements,11CORS.
SeeCross-originresourcesharing(CORS)CouchDBCORS,282–283CradlemoduleNodeapplication,278–279twitterdatabase,280customviewdefinition,220emitmethod,220guestbookdatabase,223mapfunction,221output,222permanentview,223signatureview,224temporaryview,221URL,224FutonAddFieldbutton,218@CouchDBsignature,219documentlist,219guestbook,216–217GUIDs,217HTMLinterface,215–216query,220SaveDocument,218Sourceview,218UploadAttachment,218URL,220Macinstallation,214–215Nodeapplicationconfigurationinterface,224Cradleprocess(seeCradlemodule)HTTPmethods,225RESTAPI,224viewcreationmapfunction,281query,281–282temporaryview,282Windowsinstallation,213–214Cradlemoduleconfiguration,226CouchDBNodeapplication,278–279twitterdatabase,280CradleWrapper,227createmethod,227databaseinstance,226designdocumentcreation,237existingHTTPNodeapplication,238output,237savemethod,237sigTimeandsignatures,238existsmethod,228getmethodIndexindex296all_docsquery,230callbackfunction,229documentID,229keyparameter,229limitparameter,229logging,231querystringparameters,229sorting,229startkeyandendkeyparameters,229installation,225–226newdocuments,235–236requiremethod,226savemethod,234viewmethod,232–233Cross-originresourcesharing(CORS)Access-Control-Allow-Origin,143Ajaxrequest,143authorization,145configuration,146CORS-enabledserver,176GETrequest,145JSONresponse,145preflightheaders,148responseheaders,147simpleheaders,147specification,143user-agent,143–144DDatainterchange.
SeeHypertextTransferProtocol(HTTP)Designingliteralsarray,22,25object,22,24Dotnotation,19–20EECMAScript,1emitmethod,220Escapedliterals,43evalfunctionassignments,72evaluateexpression,71objectliterals,72stringliterals,72Fforloopsyntax,13array,21charAt,30FutonAddFieldbutton,218@CouchDBsignature,219documentlist,219guestbook,216–217GUIDs,217HTMLinterface,215–216query,220SaveDocument,218Sourceview,218UploadAttachment,218URL,220Ggetmethodall_docsquery,230callbackfunction,229documentID,229keyparameter,229limitparameter,229logging,231querystringparameters,229sorting,229startkeyandendkeyparameters,229GloballyUniqueIdentifier(GUID),217HHandlebarsajaxRange.
js,289basicexpression/placeholder,247blockexpressions,255–256compilemethod,249complexJSONstructures,253CSSstyle,291HTMLspantag,248implementation,247index.
htmlHandlebar-Tweet-Template,288installation,245JSONstructure,257loadtweetsbutton,289multipleplaceholders,251outputsfields,259presentation,290scripttag,248–249sourcecode,257–258templateFunction,250HypertextTransferProtocol(HTTP)Ajax(seeXMLHttpRequestinterface)cookiesASCIIcharacters,83domainattribute,85expiresattribute,84httponlyattribute,87Cradlemodule(cont.
)Index297max-ageattribute,85pathattribute,86secureattribute,87syntax,82modulesaddListenermethod,173Buffer.
byteLengthmethod,175createServermethod,174http.
createServer,172http.
IncomingMessage,172http.
ServerResponse,172JSONmessageoutput,175JSON.
stringifymethod,175listenmethod,173requestListenermethod,173HTTP-requestentitybody,106entityheaders,105–106generalheaders,103requestheaders,103–105requestline,102structureof,102responseentitybody,109–110entityheaders,109generalheaders,108responseheaders,108–109statusline,107structureof,107NodeAPIserver,170Nodeserver,168servermodules,170IindexOfmethod,30InternetEngineeringTaskForce(IETF),37,145ISOdate-formattedstrings,74J,KJavaScriptdeclarations,14expressionsarithmeticoperator,7assignmentoperator,6comparisonoperator,8contrasting,6instanceofoperator,9NOToperator,10statements,10typeofoperator,9functions,14lineterminators(seeLineterminators)valuesnon-primitivetypes,2primitivetypes(seePrimitivetypes)JavaScriptObjectNotation(JSON)grammer,72–73compositestructures,38escapedliterals,43numbervalues,44stringvalue,42text,45history,37objectHTMLfile,52–53stringify(seeStringifymethod)serializationprocess,50structuralcharactertoken,45whitespacecharactertoken,46json2.
jsJavaScriptLibrary,53JSON.
parsemethoddatatreecreation,70evalfunctionassignments,72evaluateexpression,71objectliterals,72stringliterals,72notation,71parameters,69parseerror,70reviverfunctioncustomdatatype,77ISOdate-formattedstrings,74labelidentifiers,76__proto__,78returnedvalues,74undefinedvalue,74stringifymethod(seeJSON.
parsemethod)stringvalue,70JSONPservercodeimplementation,179getParamKeyfunction,179loadjsonp,180output,180requestHandler,178serverconfigurations,181JSON.
stringifymethod,175L,MLineterminatorsblockstatements,12controlstatements,11loopstatements,13truthy/falsyvalue,12Loopstatements,13index298NNode.
JSMacinstallationempty.
bash_profile,166nodesetupwizard,165node-versioncommand,167$PATHconfiguration,166–167$PATHenvironmentvariable,166terminal,166Windowsinstallation32-bitvs.
64-bit,160commandpromptinterface,162configurations,161End-UserLicenseAgreement,161nodesetup,161node-versioncommand,162output,163userandsystemvariables,163–164Twitterapplicationmodule,276–277statuses/filterURIstates,277StreamingAPI,277Non-primitivevalues,2,13,50NoSQLdatabases.
SeeCouchDBnulltype,5OObjectsaccessnotationbracket,20dot,19–20aCollection,19array,21built-inobjects,18designingliterals(seeDesigningliterals)key/valuepair,17toString,18unorderedcollection,18OPTIONSrequestmethodAccess-Control-Allow-Headers,205Access-Control-Allow-Methods,205Access-Control-Request-Headers,205Access-Control-Request-Method,205Content-Type,209cross-originrequests,204formPostresource,205headerconfiguration,207incomingEntityBodyapplication,205–206Networktab,205output,209remoteorigins,209sourceorigins,208unauthorizedsourceoriginrequest,208P,QPersistingJSONdocumentcookieassigningvalue,88creation,88expires,90getCookiefunction,92modernbrowser,88setCookiefunction,90settermethod,88storingcookies,93HTTPcookieASCIIcharacters,83domainattribute,85expiresattribute,84httponlyattribute,87max-ageattribute,85pathattribute,86secureattribute,87syntax,82JSONtext,81stringifyandparsemethod,81webstorageclearmethod,97getItemmethod,96keymethod,97length,97–98removeItemmethod,96setItemmethod,95–96Window.
localStorage,94Window.
sessionStorage,94POSTmethod,102codeimplementation,192HTMLFormPOSTactionattribute,193codeimplemention,196Content-Types,193exerciseAapplicationlogs,195getParamKeyfunction,196localformPOSTapplication,194methodattribute,193microsoftfavicon,195Nodeapplication,192setEncodingmethod,196URLandPORT,195JSONPOSTajaxfunction,198Content-Types,198–199exercise/incomingentitybody,201incomingentityvariable,199json-form.
jsfile,198output,199payload,191Index299preflightrequestAccess-Control-Allow-Originheader,203definition,203OPTIONSrequest(seeOPTIONSrequestmethod)preflightheader,210safemethods,203same-originpolicy,203unauthorizedpreflightrequest,204unsafemethod,203user-agentacts,203PrimitivevaluesBooleantype,5nulltype,5number,3strings,50alternatequotations,4ASCIIcharacterencoding,3escapedquotations,4undefinedtype,5ProxyserverClientRequestmethods,184codeimplementation,185http.
request,182http.
Stream,183stringmanipulation,187–188Rrenderfunction,286reviverfunctioncustomdatatype,77ISOdate-formattedstrings,74labelidentifiers,76returnedvalues,74__proto__,78undefinedvalue,74SSame-originpolicy(SOP)Chromedevelopertools,136–137Chromeuser,140CORS(seeCross-originresourcesharing(CORS))cross-originrequest,135definition,133domain,139effects,139Firebugdevelopertool,138Firefoxalert,137GETrequest,141HTTPURL,139JSONPdynamicscripttaginjection,156–157evalfunction,153ExpressionStatements,153functiondeclaration,155groupingoperator,153imagesA.
json,152parameter,155ReferenceError,154scripttagstargeting,152someMethods,154output,141–142port,139PostmanHTTPrequest,141proxy$urivariable,151cURL,150diagram,148GETrequests,150HTTPprotocol,148jsonpURLparameter,151PHPserver-sideimplementation,150querystringparameter,150xhrcode,149scheme,139setRequestHeadermethod,139user-agent,140XDomainRequest,134–135Serializationprocess,50splitmethod,34Stringifymethodreplacerarray,60function,62serializingJavaScriptvalues,53space,64valueparametercyclicobject,57functions,57number,57serializationprocess,54–55toJSON,57undefinedvalue,56Stringobjectconcatenation,27creation,28implicit,36interfacecharAtmethod,30indexOfmethod,30length,29matchmethod,32replacemethod,32splitmethod,34substrmethod,34toLowerCasemethod,35toStringmethod,30toUpperCasemethod,35Structuralcharactertokens,45,50index300TTemplatingengineblockhelpers,260built-inhelpers,260codeimplementation,243eachhelper,261elsehelper,265Handlebarsbasicexpression/placeholder,247blockexpressions,255–256compilemethod,249complexJSONstructures,253HTMLspantag,248implementation,247installation,245JSONstructure,257multipleplaceholders,251outputsfields,259scripttag,248–249sourcecode,257–258templateFunction,250ifhelper,262stringmanipulationandDOMscript,244unlesshelper,264toJSONmethod,57toLowerCasemethod,35toStringmethod,30toUpperCasemethod,35Twitterapplicationdescription,270Detailspage,271keysandaccesstokens,273APImethods,273authorization,275–276ConsumerKey,272OAuth,272usertoken,274–275NewAppbuttoncreation,269Node.
jsmodule,276–277statuses/filterURIstates,277StreamingAPI,277OAuthauthorizationprotocol,271publicstream,274Read-onlystatus,272registeredusers,269trending,276URL,270U,VUndefinedtype,5Unorderedcollection,18WWebstorageclearmethod,97getItemmethod,96keymethod,97length,97–98removeItemmethod,96setItemmethod,95–96Window.
localStorage,94Window.
sessionStorage,94Whitespacecharactertokens,46X,Y,ZXMLHttpRequest(xhr)interfaceabortevent,114callbackfunctions,114constructor,112cross-browsersolution,113errorevent,114eventhandlers,112–113HTTPGETrequest,110–111instances,112loadendevent,114loadevent,114loadstartevent,114onreadystatechangeevent,114progressevent,114readyStateproperty,115–116requestmethodabortmethod,116,119openmethod,116–117sendmethod,116,118–119setRequestHeader,116–118timeoutproperty,120uploadproperty,120–121withCredentialsproperty,120responsemethodgetAllResponseHeadersmethod,121–122getResponseHeadermethod,121–124overrideMimeTypemethod,121,124readyStateproperty,124responseproperty,126–130responseTextproperty,124–125responseTypeproperty,124,126responseXMLproperty,124–125statusproperty,124–125statusTextproperty,124–125timeoutevent,114
看到群里网友们在讨论由于不清楚的原因,有同学的网站无法访问。他的网站是没有用HTTPS的,直接访问他的HTTP是无法访问的,通过PING测试可以看到解析地址已经比较乱,应该是所谓的DNS污染。其中有网友提到采用HTTPS加密证书试试。因为HTTP和HTTPS走的不是一个端口,之前有网友这样测试过是可以缓解这样的问题。这样通过将网站绑定设置HTTPS之后,是可以打开的,看来网站的80端口出现问题,而...
justhost怎么样?justhost服务器好不好?JustHost是一家成立于2006年的俄罗斯服务器提供商,支持支付宝付款,服务器价格便宜,200Mbps大带宽不限流量,支持免费更换5次IP,支持控制面板自由切换机房,目前JustHost有俄罗斯6个机房可以自由切换选择,最重要的还是价格真的特别便宜,最低只需要87卢布/月,约8.5元/月起!总体来说,性价比很高,性价比不错,有需要的朋友可以...
Sharktech(鲨鱼服务器商)我们还是比较懂的,有提供独立服务器和高防服务器,而且性价比都还算是不错,而且我们看到有一些主机商的服务器也是走这个商家渠道分销的。这不看到鲨鱼服务器商家洛杉矶独立服务器纷纷促销,不限制流量的独立服务器起步99美元,这个还未曾有过。第一、鲨鱼机房服务器方案洛杉矶机房,默认1Gbps带宽,不限流量,自带5个IPv4,免费60Gbps / 48Mpps DDoS防御。C...
parseerror为你推荐
海外主机租用怎么选择优质的国外服务器租用商!国外域名注册如何注册国外域名?域名备案查询如何查看网站备案已经成功域名服务商最好的域名服务商是哪一家免费vps服务器有没有便宜的vps,最好是免费的虚拟主机申请现在做网站申请虚拟主机选择哪种合适?美国vps租用如何选择国外vps服务器?php虚拟空间虚拟空间怎么修改php.ini配置网站空间商网站空间商的选择??虚拟主机评测网哪里有可靠的免费虚拟主机
vps虚拟主机 域名服务器上存放着internet主机的 查询ip地址 国外永久服务器 adman singlehop locvps bluevm 美元争夺战 鲨鱼机 河南m值兑换 cdn联盟 789电视网 东莞数据中心 厦门电信 摩尔庄园注册 godaddy空间 1美元 香港博客 美国asp空间 更多