CN107958045A - The page sharing method and device of a kind of mixed developing software - Google Patents
The page sharing method and device of a kind of mixed developing software Download PDFInfo
- Publication number
- CN107958045A CN107958045A CN201711191913.6A CN201711191913A CN107958045A CN 107958045 A CN107958045 A CN 107958045A CN 201711191913 A CN201711191913 A CN 201711191913A CN 107958045 A CN107958045 A CN 107958045A
- Authority
- CN
- China
- Prior art keywords
- page
- sharing
- language
- predetermined
- software
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Page sharing method and device, this method the invention discloses a kind of mixed developing software include:In the case where the predetermined icon of predetermined page receives the first trigger signal, the corresponding sharing interface of primary language codes of the corresponding first language code call software of predetermined icon, wherein, first language code is write by first language;Sharing interface calls preset function, shares path according to preset function acquisition predetermined page, wherein, preset function is write by first language;Primary language codes receive the path of sharing of preset function return, and carry out sharing operation according to path is shared.Method provided by the invention does not introduce third party's plug-in unit or frame, it is entirely what is simplified in structure, and during realization by the corresponding preset function of sharing interface come acquisition approach, implementation procedure is relatively simple, realize sharing for the page in mixed developing software, better user experience, solves problem of the prior art.
Description
Technical field
The present invention relates to field of mobile communication, more particularly to the page sharing method and dress of a kind of mixed developing software
Put.
Background technology
Mixed developing refer to web (webpage) exploitation with primary code exploitation be combined, both maintained primary fluency with
Excellent experience, and it is provided with the facility of professional platform independence.Specifically, mixed developing apply mobile terminal application a kind of scene be
Primary offer one webview for including header columns, html provide embedded web page.
In this case, need to share third-party application (such as in current page:Wechat, microblogging, circle of friends when) when, it is existing
Some sharing functions are realized by completely primary mode, are not suitable for the scene of mixed developing;There are some frame/plug-in units can
Sharing in a manner of helping to realize web, but these general volumes of frame/plug-in unit are big, content is more, virtually adds program
Burden, and apply in the project of mixed developing pattern it is also possible that with primary effect it is inconsistent the problem of.
Therefore, when current page needs to share third-party application, web functions, which do not possess, calls native device interface
Ability, it is primary to share and the problem of presence obtain content of pages, so the page in mixed developing software can not be carried out
Share, user experience is relatively low.
The content of the invention
The present invention provides a kind of page sharing method and device of mixed developing software, to solve the as follows of the prior art
Problem:When the mixed developing software page needs to share third-party application, web functions, which do not possess, calls native device interface
Ability, it is primary to share and presence obtain content of pages, so the page in mixed developing software can not be shared, use
Family experience is relatively low.
In order to solve the above technical problems, on the one hand, the present invention provides a kind of page sharing method of mixed developing software, bag
Include:In the case where the predetermined icon of predetermined page receives the first trigger signal, the corresponding first language code of predetermined icon
The corresponding sharing interface of primary language codes of software is called, wherein, first language code is write by first language;Share and connect
Mouth calls preset function, shares path according to preset function acquisition predetermined page, wherein, preset function is compiled by first language
Write;Primary language codes receive the path of sharing of preset function return, and carry out sharing operation according to path is shared.
Optionally, before the predetermined icon of predetermined page receives trigger signal, further include:In the predetermined page of software
Predetermined icon is set;Predetermined icon and first language code are associated.
Optionally, the corresponding sharing interface of primary language codes of the corresponding first language code call software of predetermined icon
Afterwards, further include:Obtained by the primary code of software and share channel menu, and presented on the screen;Receive user according to point
Enjoy channel menu transmission the second touch signal, and according to the second touch signal determine user select share channel.
Optionally, predetermined page is in the corresponding navigation bar page of primary language codes webpage corresponding with first language code
Hold the page that page is combined.
Optionally, first language is JavaScript language.
On the other hand, the present invention also provides a kind of page sharing apparatus of mixed developing software, including:Execution module, is used
In the case of the first trigger signal is received in the predetermined icon of predetermined page, make the corresponding first language code of predetermined icon
The corresponding sharing interface of primary language codes of software is called, wherein, first language code is write by first language;First obtains
Modulus block, for making sharing interface call preset function, shares path according to preset function acquisition predetermined page, wherein, in advance
If function is write by first language;Sharing module, for receiving primary language codes, preset function returns shares path,
And carry out sharing operation according to path is shared.
Optionally, further include:Setup module, for setting predetermined icon in the predetermined page of software, and by predetermined icon
It is associated with first language code.
Optionally, further include:Second acquisition module, shares channel menu for being obtained by the primary code of software, and
Present on the screen;Determining module, for receiving user according to the second touch signal for sharing the transmission of channel menu, and according to the
Two touch signals determine user selection share channel.
Optionally, predetermined page is in the corresponding navigation bar page of primary language codes webpage corresponding with first language code
Hold the page that page is combined.
Optionally, first language is JavaScript language.
Method provided by the invention does not introduce third party's plug-in unit or frame, is entirely what is simplified in structure, and in realization
During by the corresponding preset function of sharing interface come acquisition approach, implementation procedure is relatively simple, and it is soft to realize mixed developing
The page is shared in part, and better user experience, solve the problems, such as the as follows of the prior art:Need to divide in the mixed developing software page
When enjoying third-party application, web functions do not possess the ability for calling native device interface, primary to share and presence obtain page
Face content, so can not be shared the page in mixed developing software, user experience is relatively low.
Brief description of the drawings
Fig. 1 is the flow chart of the page sharing method of mixed developing software in first embodiment of the invention;
Fig. 2 is the structure diagram of the page sharing apparatus of mixed developing software in second embodiment of the invention;
Fig. 3 is the preferred structure schematic diagram of the page sharing apparatus of mixed developing software in second embodiment of the invention;
Fig. 4 is the flow chart of the page sharing method of mixed developing software in third embodiment of the invention.
Embodiment
In order to solve the problems, such as the as follows of the prior art:When the mixed developing software page needs to share third-party application,
Web functions do not possess call native device interface ability, it is primary share again presence cannot obtain content of pages, so can not general
The page in mixed developing software is shared, and user experience is relatively low;The present invention provides a kind of page of mixed developing software
Sharing method and device, below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.It should be appreciated that this
Locate described specific embodiment only to explain the present invention, do not limit the present invention.
First embodiment of the invention provides a kind of page sharing method of mixed developing software, and the flow of this method is as schemed
Shown in 1, including step S102 to S106:
S102, in the case where the predetermined icon of predetermined page receives the first trigger signal, predetermined icon corresponding
One language codes call the corresponding sharing interface of primary language codes of software, wherein, first language code passes through first language
Write.
S104, sharing interface call preset function, share path according to preset function acquisition predetermined page, wherein, in advance
If function is write by first language.
S106, what primary language codes reception preset function returned shares path, and carries out sharing behaviour according to path is shared
Make.
The embodiment of the present invention provides a kind of sharing method for the page of mixed developing software, in the predetermined of predetermined page
In the case that icon receives the first trigger signal, the primary language codes of first language code call software are corresponding to be shared and connects
Mouthful, preset function is called by sharing interface, to share path according to the preset function come obtain predetermined page, is being got
After this shares path, primary code is sent it to, primary code, which can share path according to this and perform, follow-up shares behaviour
Make, page entry to be shared be encapsulated into for example, path will be shared and corresponded to, when user clicks on the page entry, it is possible to
Entered by sharing path and shared in the page.
Method provided in this embodiment does not introduce third party's plug-in unit or frame, is entirely what is simplified in structure, and realizing
During by the corresponding preset function of sharing interface come acquisition approach, implementation procedure is relatively simple, realizes mixed developing
The page is shared in software, and better user experience, solve the problems, such as the as follows of the prior art:Needed in the mixed developing software page
When sharing third-party application, web functions do not possess the ability for calling native device interface, primary to share and presence obtain
Content of pages, so can not be shared the page in mixed developing software, user experience is relatively low.
It is that cannot be distinguished by whether the software is that pure primary exploitation is soft from user side when user is using any type software
Part or mixed developing software, to the software of then any type exploitation, illustrate from developer side, for
For family, can it is concerned with the content share that oneself is liked into the software for wanting to share.If active user uses
Be mixed developing software, and user can be then given when the page of front opening is just because being the mixed developing page and can not share
User brings bad experience.Using method provided in this embodiment, it is possible to avoid the above situation.
During specific implementation, user can carry out any operation to any page in software, since the type of touch signal has
A variety of, therefore, whether the present embodiment is also provided with preset icon in a position of predetermined page, received by the preset icon
To touch signal to determine whether triggering sharing operation.Before the predetermined icon of predetermined page receives trigger signal, also need
Predetermined icon is set in the predetermined page of software, and predetermined icon and first language code are associated.
In the above process, predetermined page can be corresponding navigation (header) the column page of primary language codes and first language
The page that the corresponding webpage of code (web) content pages are combined.
For above-mentioned preset function, it can be that developer is just finished writing when developing mixed developing software, because
This, the existence time of preset function must be before predetermined icon receives the first touch signal.
For sharing interface, it can be JavaScript interface.No matter which kind of sharing interface is, when developer is sharing
After interface sets preset function, when any one page of the software needs to be shared, it is possible to obtained by the predefined function
Take the routing information for sharing the page.The operation of whole process is all relatively simple, it is not necessary to which user side makes any change, user's body
Test preferably.
After the corresponding sharing interface of primary language codes of the corresponding first language code call software of predetermined icon,
It can also be obtained by the primary code of software and share channel menu, for example, sharing channel menu can include:Wechat friend
On the platforms such as circle, microblogging, the ends of the earth, and this is shared into channel menu and is presented on the screen.At this time, the of the user to be received such as software
Two touch informations, the second touch signal at this time is that user sends according to channel menu is shared, and is that user determines selection
Share channel, such as when the location of second touch signal is on the corresponding icon of wechat circle of friends, then user is just intended to
The current page of software is shared to wechat circle of friends.Then, S104 and S106 is performed, the path of sharing got is carried out
Share.
Second embodiment of the invention provides a kind of page sharing apparatus of mixed developing software, the structural representation of the device
As shown in Fig. 2, including:
Execution module 10, in the case of receiving the first trigger signal in the predetermined icon of predetermined page, makes to make a reservation for
The corresponding sharing interface of primary language codes of the corresponding first language code call software of icon, wherein, first language code
Write by first language;First acquisition module 20, couples with execution module 10, for making sharing interface call preset function,
Path is shared according to preset function acquisition predetermined page, wherein, preset function is write by first language;Sharing module 30,
Coupled with the first acquisition module 20, for receiving primary language codes, preset function returns shares path, and according to sharing
Path carries out sharing operation.
Wherein, above-mentioned predetermined page can be that the corresponding header columns page of primary language codes is corresponding with first language code
The page that is combined of web content page.
During specific implementation, user can carry out any operation to any page in software, since the type of touch signal has
A variety of, therefore, whether the present embodiment is also provided with preset icon in a position of predetermined page, received by the preset icon
To touch signal to determine whether triggering sharing operation.
The present embodiment above device can also include setup module, and predetermined icon is set for the predetermined page in software,
And predetermined icon and first language code are associated.
During specific implementation, which is required for setting above-mentioned preset function, therefore, the setting mould of above device
Block, can be also used for setting preset function in the sharing interface of software.
For above-mentioned preset function, it can be that developer is just finished writing when developing mixed developing software, because
This, the existence time of preset function must be before predetermined icon receives the first touch signal.
For sharing interface, it can be JavaScript interface.No matter which kind of sharing interface is, when developer is sharing
After interface sets preset function, when any one page of the software needs to be shared, it is possible to obtained by the predefined function
Take the routing information for sharing the page.The operation of whole process is all relatively simple, it is not necessary to which user side makes any change, user's body
Test preferably.
Can be that channel is shared in user's presentation, therefore, above device is in Fig. 2 after definite user will share predetermined page
On the basis of, can with as shown in figure 3, including:
Second acquisition module 40, couples with the first acquisition module 20, shares canal for being obtained by the primary code of software
Road menu, and present on the screen;Determining module 50, couples with the second acquisition module 40 and sharing module 30, is used for receiving
Family according to share channel menu transmission the second touch signal, and according to the second touch signal determine user select share canal
Road.
Certainly, Fig. 3 that the present embodiment provides only is a kind of schematic diagram, does not form limit to the coupled relation of modules
It is fixed.Those skilled in the art according to the actual requirements, may be set to be with different coupled relations.
Third embodiment of the invention provides a kind of page sharing method of mixed developing software, in the method, user
Use Haier's smart home management software, which is the app of mixed developing, primary offer header and comprising share by
Button, content page are realized by web (html) mode.In the software, developer defines for js (JavaScript) interface
Function funcA, below in conjunction with the accompanying drawings the page sharing method of 4 pairs of the present embodiment be described in detail, it includes following flow.
Whether S401, the trigger signal for judging to receive correspond to sharing operation.If it is, perform S402, otherwise after
It is continuous to perform S407.When realizing, it can be set on the page that can share and share button, when judging, only judge whether user touches
Send out and shared button respective operations region.
Channel menu is shared in S402, primary code response, display.
S403, what reception user selected in channel menu is shared shares channel.For example, share microblogging.
S404, primary code call the funcA of js interfaces.
S405, funcA splice the path for sharing page, and are returned to primary code.
S406, primary code obtain sharing path, for subsequently sharing displaying.
S407, corresponding operation is performed according to the corresponding type of trigger signal.
It is local not possess calling for actual conditions when sharing for closing mixed developing software, i.e. web functions for the present embodiment
The ability of equipment interface, it is primary to share and presence obtain the limitation of content of pages, present embodiments provide it is a kind of it is primary with
Javascript is combined the method for realizing sharing function, it realizes the page of mixed developing software and shares, while not extra
Increase the burden of program, it is only necessary to which primary and js cooperates, and provisioning interface title and parameter can be realized quickly, simple and convenient
Simply.
Although being example purpose, the preferred embodiment of the present invention is had been disclosed for, those skilled in the art will recognize
Various improvement, increase and substitution are also possible, and therefore, the scope of the present invention should be not limited to above-described embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but very much
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) method that performs each embodiment of the present invention.
Claims (10)
- A kind of 1. page sharing method of mixed developing software, it is characterised in that including:In the case where the predetermined icon of predetermined page receives the first trigger signal, the corresponding first language of the predetermined icon The corresponding sharing interface of primary language codes of code call software, wherein, the first language code is compiled by first language Write;The sharing interface calls preset function, shares path according to the preset function acquisition predetermined page, wherein, The preset function is write by the first language;The primary language codes receive the described of the preset function return and share path, and are carried out according to the path of sharing Sharing operation.
- 2. page sharing method as claimed in claim 1, it is characterised in that receive triggering in the predetermined icon of predetermined page Before signal, further include:In the predetermined page of the software, the predetermined icon is set;The predetermined icon and the first language code are associated.
- 3. page sharing method as claimed in claim 1, it is characterised in that the corresponding first language code of the predetermined icon After the corresponding sharing interface of primary language codes for calling software, further include:Obtained by the primary code of software and share channel menu, and presented on the screen;Receive user and share the second touch signal of channel menu transmission according to described, and determined according to second touch signal Channel is shared in user's selection.
- 4. page sharing method as claimed any one in claims 1 to 3, it is characterised in that the predetermined page is primary The page that the corresponding navigation bar page of language codes is combined with the corresponding web page contents page of the first language code.
- 5. page sharing method as claimed any one in claims 1 to 3, it is characterised in that the first language is JavaScript language.
- A kind of 6. page sharing apparatus of mixed developing software, it is characterised in that including:Execution module, in the case of receiving the first trigger signal in the predetermined icon of predetermined page, makes the predetermined figure The corresponding sharing interface of primary language codes of corresponding first language code call software is marked, wherein, the first language generation Code is write by first language;First acquisition module, for making the sharing interface call preset function, obtains described predetermined according to the preset function The page shares path, wherein, the preset function is write by the first language;Sharing module, for making to share path described in the primary language codes reception preset function return, and according to The path of sharing carries out sharing operation.
- 7. page sharing apparatus as claimed in claim 6, it is characterised in that further include:Setup module, for setting the predetermined icon in the predetermined page of the software, and will the predetermined icon and The first language code is associated.
- 8. page sharing apparatus as claimed in claim 6, it is characterised in that further include:Second acquisition module, shares channel menu for being obtained by the primary code of software, and presents on the screen;Determining module, for receiving user according to second touch signal for sharing the transmission of channel menu, and according to described the Two touch signals determine user selection share channel.
- 9. the page sharing apparatus as any one of claim 6 to 8, it is characterised in that the predetermined page is primary The page that the corresponding navigation bar page of language codes is combined with the corresponding web page contents page of the first language code.
- 10. the page sharing apparatus as any one of claim 6 to 8, it is characterised in that the first language is JavaScript language.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711191913.6A CN107958045A (en) | 2017-11-24 | 2017-11-24 | The page sharing method and device of a kind of mixed developing software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711191913.6A CN107958045A (en) | 2017-11-24 | 2017-11-24 | The page sharing method and device of a kind of mixed developing software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107958045A true CN107958045A (en) | 2018-04-24 |
Family
ID=61962420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711191913.6A Pending CN107958045A (en) | 2017-11-24 | 2017-11-24 | The page sharing method and device of a kind of mixed developing software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107958045A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874556A (en) * | 2018-05-23 | 2018-11-23 | 北京五八信息技术有限公司 | A kind of data interactive method, device, storage medium and mobile terminal |
CN110134900A (en) * | 2019-04-18 | 2019-08-16 | 深圳壹账通智能科技有限公司 | Page data sharing method, device, computer equipment and storage medium |
CN113076294A (en) * | 2021-04-16 | 2021-07-06 | 北京沃东天骏信息技术有限公司 | Information sharing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103258024A (en) * | 2013-05-07 | 2013-08-21 | 百度在线网络技术(北京)有限公司 | Method, system and device for sharing local contents of pictures in webpage |
US20140040767A1 (en) * | 2012-08-03 | 2014-02-06 | Oracle International Corporation | Shared digital whiteboard |
CN107015824A (en) * | 2017-02-22 | 2017-08-04 | 深圳市口袋网络科技有限公司 | By application and the method and device for sharing account binding |
-
2017
- 2017-11-24 CN CN201711191913.6A patent/CN107958045A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140040767A1 (en) * | 2012-08-03 | 2014-02-06 | Oracle International Corporation | Shared digital whiteboard |
CN103258024A (en) * | 2013-05-07 | 2013-08-21 | 百度在线网络技术(北京)有限公司 | Method, system and device for sharing local contents of pictures in webpage |
CN107015824A (en) * | 2017-02-22 | 2017-08-04 | 深圳市口袋网络科技有限公司 | By application and the method and device for sharing account binding |
Non-Patent Citations (1)
Title |
---|
周伯通的麦田: "html静态页面实现微信分享思路", 《HTTPS://WWW.CNBLOGS.COM/PHPPER/P/6604903.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874556A (en) * | 2018-05-23 | 2018-11-23 | 北京五八信息技术有限公司 | A kind of data interactive method, device, storage medium and mobile terminal |
CN110134900A (en) * | 2019-04-18 | 2019-08-16 | 深圳壹账通智能科技有限公司 | Page data sharing method, device, computer equipment and storage medium |
CN113076294A (en) * | 2021-04-16 | 2021-07-06 | 北京沃东天骏信息技术有限公司 | Information sharing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107958045A (en) | The page sharing method and device of a kind of mixed developing software | |
CN109792657A (en) | Wireless communications method and equipment | |
CN104702665B (en) | Information sharing method and information sharing apparatus | |
KR20060107949A (en) | Gui of requesting information announcing sms service for mobile terminal and method | |
CN103377238B (en) | The method of process info web and browser | |
CN108347736A (en) | The control method of resource-sharing executes entity and resource-sharing configuration entity | |
KR100707703B1 (en) | Providing a service in a communication system | |
CN109155907B (en) | Internet of vehicles synchronization method and device | |
CN110704059B (en) | Image processing method, device, electronic equipment and storage medium | |
CN103139876A (en) | Method and device selecting wireless access mode for mobile terminal adaptively | |
CN104035783A (en) | Platform integrating method and platform integrating system matched with third party web page in application program | |
CN104808940B (en) | Inter-terminal data transmission method and device | |
CN109041168A (en) | Communication network cut-in method, electronic device and computer readable storage medium | |
CN109348514A (en) | A kind of method and terminal controlling electromagnetic interference | |
CN105607799A (en) | Data processing method and apparatus | |
CN105554382B (en) | A kind of mobile terminal and its method for realizing control of taking pictures | |
CN103516916B (en) | Dialing method and device | |
CN113207194B (en) | Multi-mode communication implementation method and device based on kylin mobile operating system | |
CN106909290A (en) | A kind of method and device of screenshotss | |
EP3163795B1 (en) | Charging methods, access device, and charging device | |
AU2701199A (en) | A method of displaying image sequences on a mobile radio communications equipment co-operating with a subscriber identity module | |
CN112689187A (en) | Video processing method and device, electronic equipment and storage medium | |
KR101879785B1 (en) | The method to syncronize both web/app session and phone channel on Visual-IVR systems | |
CN111079040A (en) | Resource sniffing method, device, terminal, server and storage medium | |
CN105812596A (en) | Calling number display method, related device and system in IMS network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180424 |
|
RJ01 | Rejection of invention patent application after publication |