CN103365864B - A kind of method of webpage front-end positioning data - Google Patents

A kind of method of webpage front-end positioning data Download PDF

Info

Publication number
CN103365864B
CN103365864B CN201210086958.8A CN201210086958A CN103365864B CN 103365864 B CN103365864 B CN 103365864B CN 201210086958 A CN201210086958 A CN 201210086958A CN 103365864 B CN103365864 B CN 103365864B
Authority
CN
China
Prior art keywords
array
keyword
target
string
positioning data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210086958.8A
Other languages
Chinese (zh)
Other versions
CN103365864A (en
Inventor
李帖
葛志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI SHOPEX NETWORK TECHNOLOGY Co Ltd
Priority to CN201210086958.8A priority Critical patent/CN103365864B/en
Publication of CN103365864A publication Critical patent/CN103365864A/en
Application granted granted Critical
Publication of CN103365864B publication Critical patent/CN103365864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention discloses a kind of method of webpage front-end positioning data, comprises the first array and the first array has the 2nd array and the target array of identical element, wherein, specifically comprises the steps; Step a, by respective first element of pointed of described first array and described 2nd array instruction array interior element; Step b, described target array interior element is in turn connected into target strings in order, and converts described target strings to character string forms; Step c, it is instructed in the first array according to described pointer to obtain the first keyword in the 2nd array, obtains the 2nd keyword simultaneously; Steps d, described first keyword and described 2nd keyword are connected into keyword string, and convert described keyword string to character string forms; Step e, regular expression is utilized to check whether described keyword string is present in described target strings, and with predetermined policy record check result.

Description

A kind of method of webpage front-end positioning data
Technical field
The present invention relates to a kind of data enquire method, the method for especially a kind of webpage front-end positioning data.
Background technology
Along with the development of internet technique, the popularity of network is more and more higher, and website have also been obtained significant progress as the main contents supplier of internet. Website is no longer satisfied with the content only providing unified standard but wish can be more with user interaction and then can realize by the demand offer content service of user.
A lot of website is the data, services that user provides data form class, and number of site also can provide some simply to inquire about function for strengthening the interactive experience of user on this basis. Owing to the visit capacity of website is bigger; these are do not affect the script that the overall speed of website generally all adopts front end to explain to realize for the simple queries function of domestic consumer; simultaneously in order to reduce the expense of database; possible Query Result is generally all left in array by this kind of simple queries function in advance; these inquiry functions querying condition are also put in array with existing, so can be converted into usually performs array orientation problem by the script of browser-interpreted simultaneously. Usual method is by the relation of inclusion checking between array that circulates, but may occur when many or multi-condition inquiry at array element causing front end torpor due to systemic circulation or causing front reaction slow owing to circulation is nested, and then affect browsing of user.
Summary of the invention
For the problems referred to above that existing webpage front-end array data positioning mode exists, the present invention provides a kind of and is intended to reduce the method producing front reaction webpage front-end positioning data slowly because performing cyclical operation.
The technical scheme that technical solution problem of the present invention adopts is:
A method for webpage front-end positioning data, comprises the first array and the first array has the 2nd array and the target array of identical element, wherein, specifically comprises the steps;
Step a, by respective first element of pointed of described first array and described 2nd array instruction array interior element;
Step b, described target array interior element is in turn connected into target strings in order, and converts described target strings to character string forms;
Step c, it is instructed in the first array according to described pointer to obtain the first keyword in the 2nd array, obtains the 2nd keyword simultaneously;
Steps d, described first keyword and described 2nd keyword are connected into keyword string, and convert described keyword string to character string forms;
Step e, regular expression is utilized to check whether described keyword string is present in described target strings, and with predetermined policy record check result;
The next element of order of the pointer of step f, described first array and the pointed of described 2nd array place array separately;
Step g, check whether the array element of the pointed of described first array exists, if do not existed, exit, then return step c continue to perform as existed.
The method of above-mentioned webpage front-end positioning data, wherein, predetermined policy described in described step e then returns vacation in target strings as described in not being present in such as described keyword string, as described keyword string exist with as described in then resolve in target strings described target strings reduction comprise as described in keyword string part in as described in the position of target array interior element, return element corresponding to this position and return very.
The method of above-mentioned webpage front-end positioning data, wherein, described step a is performed to described step g by the script being embedded in hypertext document.
The method of above-mentioned webpage front-end positioning data, wherein, described predetermined policy is performed by the script being embedded in hypertext document.
The invention has the beneficial effects as follows:
Checking character string by cyclical operation array being changed into regular expression, avoiding the problem that cyclical operation may produce, reducing front end system expense, it is to increase the surfing of user.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the method for a kind of webpage front-end positioning data of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
The method of a kind of webpage front-end positioning data of the present invention, comprise the first array and the first array has the 2nd array and the target array of identical element, first array and the 2nd array store querying condition respectively, target array stores the Query Result of expection, wherein, as shown in Figure 1, specifically comprise the steps;
Step a, by the first array and the 2nd array instruction array interior element pointer point to the first respective element respectively;
Step b, target array interior element is in turn connected into target strings in order, and converts target strings to character string forms;
Step c, pointer according to the first array are instructed in the first array to obtain the first keyword and are instructed in the 2nd array to obtain the 2nd keyword according to the 2nd array pointer simultaneously;
Steps d, the first keyword and the 2nd keyword are connected into keyword string, and convert keyword string to character string forms;
Step e, whether keyword string is present in target strings to utilize regular expression to check, and with predetermined policy record check result;
The next element of order of the pointer of step f, the first array and the pointed of the 2nd array place array separately;
Whether the array element of step g, the pointed checking the first array exists, and if do not existed, exits, and then returns step c continuation execution as existed.
Further, wherein, in step e, predetermined policy then returns vacation for not being present in target strings such as keyword string, exists such as keyword string and then resolves target strings in target strings and reduce the part comprising keyword string in the position of target array interior element, returns element corresponding to this position and return true.
Further, wherein, step a is performed to step g and above-mentioned predetermined policy by the script being embedded in hypertext document, and wherein script can be formed by JavaScript, VBScript or other script language compilation.
The foregoing is only preferred embodiment of the present invention; not thereby the claim of the present invention is limited; so equivalent structure change done by all utilizations specification sheets of the present invention and diagramatic content and the usual means of those skilled in the art are replaced, all it is included in protection scope of the present invention.

Claims (4)

1. a method for webpage front-end positioning data, comprises the first array and the first array has the 2nd array and the target array of identical element, it is characterised in that, specifically comprise the steps;
Step a, by respective first element of pointed of described first array and described 2nd array instruction array interior element;
Step b, described target array interior element is in turn connected into target strings in order, and converts described target strings to character string forms;
Step c, it is instructed in the first array according to described pointer to obtain the first keyword in the 2nd array, obtains the 2nd keyword simultaneously;
Steps d, described first keyword and described 2nd keyword are connected into keyword string, and convert described keyword string to character string forms;
Step e, regular expression is utilized to check whether described keyword string is present in described target strings, and with predetermined policy record check result;
The next element of order of the pointer of step f, described first array and the pointed of described 2nd array place array separately;
Step g, check whether the array element of the pointed of described first array exists, if do not existed, exit, then return step c continue to perform as existed.
2. the method for webpage front-end positioning data as claimed in claim 1, it is characterized in that, predetermined policy described in described step e then returns vacation in target strings as described in not being present in such as described keyword string, as described keyword string be present in as described in then resolve in target strings described target strings reduction comprise as described in keyword string part in as described in the position of target array interior element, return element corresponding to this position and return very.
3. the method for webpage front-end positioning data as claimed in claim 1, it is characterised in that, described step a is performed to described step g by the script being embedded in hypertext document.
4. the method for webpage front-end positioning data as claimed in claim 2, it is characterised in that, described predetermined policy is performed by the script being embedded in hypertext document.
CN201210086958.8A 2012-03-28 2012-03-28 A kind of method of webpage front-end positioning data Active CN103365864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210086958.8A CN103365864B (en) 2012-03-28 2012-03-28 A kind of method of webpage front-end positioning data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210086958.8A CN103365864B (en) 2012-03-28 2012-03-28 A kind of method of webpage front-end positioning data

Publications (2)

Publication Number Publication Date
CN103365864A CN103365864A (en) 2013-10-23
CN103365864B true CN103365864B (en) 2016-06-08

Family

ID=49367235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210086958.8A Active CN103365864B (en) 2012-03-28 2012-03-28 A kind of method of webpage front-end positioning data

Country Status (1)

Country Link
CN (1) CN103365864B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760290B (en) * 2014-12-17 2018-11-13 阿里巴巴集团控股有限公司 The problem of being tested based on webpage front-end localization method and relevant apparatus, system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308495A (en) * 2007-10-24 2008-11-19 河北全通通信有限公司 Office data checking and manufacture method
CN101853301A (en) * 2010-05-25 2010-10-06 华为技术有限公司 Regular expression matching method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8650146B2 (en) * 2010-06-24 2014-02-11 Lsi Corporation Impulse regular expression matching

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308495A (en) * 2007-10-24 2008-11-19 河北全通通信有限公司 Office data checking and manufacture method
CN101853301A (en) * 2010-05-25 2010-10-06 华为技术有限公司 Regular expression matching method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
李旻 等.正则表达式在数据库查询中的应用.《计算机工程与设计》.2006,第27卷(第12期),2303-2305. *
胡军伟 等.正则表达式在Web信息抽取中的应用.《北京信息科技大学学报》.2011,第26卷(第6期),86-89. *
起航了.Java中使用正则表达式实现字符串匹配.《http://wap.yesky.com/dev/486/2194986.shtml》.2005,1-3. *
马俊.基于正则表达式技术的信息搜索引擎应用研究.《中国优秀硕士学位论文全文数据库 信息科技辑》.2006,I138-1555. *

Also Published As

Publication number Publication date
CN103365864A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
JP5863214B2 (en) Storage of web browsing calculations with DOM-based isomorphism
CN1320454C (en) Programming language extensions for processing XML objects and related applications
US9256697B2 (en) Bidirectional mapping between applications and network content
CN101452453B (en) A kind of method of input method Web side navigation and a kind of input method system
TWI592807B (en) Method and device for web style address merge
CN102521230A (en) Result types for conditional data display
CN103488732A (en) Generation method and device of static pages
US20120072826A1 (en) Methods and systems of outputting content of interest
CN104881490A (en) WEB form data access method and system
CN105447198A (en) Convenient page script importing method and device
US20180232410A1 (en) Refining structured data indexes
CN102880679B (en) A kind of info web storage means and device
CN103297498A (en) Relevant content pushing method based on mobile phone client side
US20130138767A1 (en) Systems and methods for managing loading of web pages
EP2874071A1 (en) Method of implementing structured and non-structured data in xml document
CN103309954A (en) Html webpage based data extracting system
CN102289497A (en) Document preview image generating system and method
CN103365864B (en) A kind of method of webpage front-end positioning data
CN101533409B (en) Network browser system and control method
US20140337707A1 (en) Method and apparatus for client to browse web page provided by server
CN103150391A (en) General database table webpage displaying method based on configuration files
EP2431891A1 (en) Methods and systems of outputting content of interest
CA2752860C (en) Methods and systems for identifying content elements
CN101383824A (en) Remote object switching method based on ATOM protocol
CN105574016A (en) Method for half-structured Web information extraction technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method for Locating Data in the Front End of Web Pages

Effective date of registration: 20230712

Granted publication date: 20160608

Pledgee: Industrial Bank Co.,Ltd. Shanghai Jinqiao Branch

Pledgor: SHANGHAI SHOPEX NETWORK TECHNOLOGY Co.,Ltd.|SHOPEX SOFTWARE CO.,LTD.

Registration number: Y2023310000365

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231007

Granted publication date: 20160608

Pledgee: Industrial Bank Co.,Ltd. Shanghai Jinqiao Branch

Pledgor: SHANGHAI SHOPEX NETWORK TECHNOLOGY Co.,Ltd.|SHOPEX SOFTWARE CO.,LTD.

Registration number: Y2023310000365