A method and device for logical judgment

A technology for logical judgment and judgment results, applied in the computer field, can solve problems such as time-consuming and execution efficiency, affect user experience, consume more waiting time and power, reduce power consumption, avoid re-detection, and improve execution efficiency effect

Active Publication Date: 2018-01-19
BEIJING JINGDONG 360 DEGREE E COMMERCE CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, the above logic code is executed again, and the function getExplorerVersion() is called again. At this time, the judgment logic in the function must be executed once, and in each judgment statement, there will be an object call operation, which is very time-consuming and efficient. Especially on the mobile phone side, it will consume more waiting time and power, seriously affecting the user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for logical judgment
  • A method and device for logical judgment
  • A method and device for logical judgment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0023] figure 2 It is a schematic diagram of the process of judging the browser type used by the terminal device according to an embodiment of the present invention. Such as figure 2 As shown, when judging the browser used by the terminal device for the first time, the browser check function is called to successively judge whether the browser used by the terminal devic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a logical judgment method and a logical judgment device which are capable of simplifying the logical judgment, improving the efficiency of the logical judgment and being good for lowering the power consumption of movable terminal equipment. The logical judgment method comprises the steps that when a current target needs to be subjected to first judgment, a judgment function is invoked to conduct the logical judgment on the current target, and the judgment result is obtained; the judgment function is rewritten after the first judgment obtains the judgment result, and the function of the rewritten function is directly returned to the judgment result of the first judgment; the rewritten judgment function is invoked when the current target is needed to be judged again.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for logical judgment. Background technique [0002] It is often necessary to make logical judgments when the application program is running. For example, when the terminal device requests data from the WEB side, the terminal software needs to determine the type of browser used by the terminal device in order to obtain the code suitable for the browser. At this time, according to the existing commonly used browser types such as IE browser, firefox browser, etc., to judge one by one, you can use figure 1 shown in the flow, figure 1 It is a schematic diagram of the process of judging the browser type used by the terminal device according to the prior art. according to figure 1 The following logic code can be used to realize the judgment: [0003] [0004] [0005] It can be seen from the above logic code that in the browser check function getExplorerV...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F1/32
CPCG06F8/313
Inventor 罗劲松
Owner BEIJING JINGDONG 360 DEGREE E COMMERCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products