.
As shown in the title of the article, I seem to have come to understand several terms in "Java puzzles". The reason why I used them seems to be modified is that I have been involved in heavy loading, rewriting, and hiding, while masking and masking may have been seen but forgotten. Let's sort out some Java puzzles related to this article and describe them with your own understanding.
Overload ):The relationship between multiple methods with the sam
memory of each class object. That is to say, how many objects are instantiated and how many memory copies are there. This is not a good thing in terms of efficiency, but it is highly feasible to use it. Although the memory usage is high, some tips can be used to minimize the memory overhead.For the time being, there may be no space. However, in the future, we will combine more examples for further analysis.Information encapsulation and hidingSimply put, it is how to process information.
$ (' #eastId '). CSS ("display", "inline"); display elementsdocument.getElementById ("Eastid"). style.display= "None";//hidden elementsDisplay and hiding of JS control elements
configuration fileUser.iniAuto_prepend_file=demo.gif(ready to use php://input test not successful do not know why)650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/F4/wKioL1Xb1bmB5I0tAAPHUavTxYk671.jpg "style=" float: none; "title=" 123.png "alt=" Wkiol1xb1bmb5i0taaphuavtxyk671.jpg "/>650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/F7/wKiom1Xb06XRSXAMAAUxl_yg5-s902.jpg "style=" float: none; "title=" 222.png "alt=" Wkiom1xb06xrsxamaauxl_yg5-s902.jpg "/>This article is f
() {// when the action type is ' order info ' if (' 1 ' = = $ (' select[name= ' Option_type "]). Val ()) { // when the operation type is ' order information ', the result of the operation is identified as ' success, partial success, failure ' Otherwise, it is "success, failure." $ (' #trade_status_partial '). Remove (); $ ("#trade_status_error"). Before (");} Else {$ (' #trade_status_partial '). Remove (); // When the action type is Order information, the result
HTML page:id= "MYP4"> By default, this paragraph is hidden, when the button is clicked, the word expands and the value on the button changes P > ID= "B6"> expand button>JS Page:1$ (document). Ready (function () {2$ ("#b6"). Click (function () {3$ ("#myp4"). Toggle ();4 vartop = document.getElementById ("MYP4");5 if(Top.style.display = = "None") {6$ ("#b6"). Text ("Expand");7}Else {8$ ("#b6"). Text ("Hidden");9 }Ten One }) A})By judging the display pr
Moving between objects --- Hide Delegate (hiding delegation relationships)
The customer calls another object through one delegate class.
Create all functions required by the customer in the service class to hide the delegate relationship.
Motivation:
Encapsulation is one of the most shutdown features even if it is not the most shutdown feature of an object. "Encapsulation" means that each object should have less knowledge of other parts of the system
1.hide () Hidden elements$ ("div"). Hide ();2.show () display element$ ("div"). Show ();3.toggle () can toggle element display and Hide$ ("div"). Toggle ();4.slideDown () slide display to slide the hidden elements out.$ ("div"). Slidedown ();5.slideUp () swipe to hide.$ ("div"). Slideup ();6.slideToggle () slide hide and display toggle$ ("div"). Slidetoggle ();7.fadeIn () fade. Used only for hidden elements.$ ("div"). FadeIn (2000);8.fadeOut () fade. The "show" state changes the transparency to
if you want to upload a picture, in the page to achieve a preview, you can get the file upload path, and then in a inside, the file upload path is To display the uploaded image on the page, you can upload it to the server and then download it to avoid the problem, but there will be excess traffic, not a good practice.Fortunately, I found a way to solve it:call FileReader's Readasdataurl interface, will start the asynchronous loading file content, by listening to reader an onload event, after l
The Paris Guide Network (www.balidaoyou.cn) is hosted by the French Association of International Students and provides a pick-up and guide service for visitors to Paris. Id=_strhref href= "Javascript:show_hiddendiv (); >Id=_strspan> Show All JS effects for displaying and hiding text
For PHP hiding entry files
Step 1: Enable the apache rewrite module and restart apache
LoadModule rewrite_module modules/mod_rewrite.so
Step 2: rewrite the distributed configuration file. htaccess in the same directory as the project root directory and the entry file.
The content is as follows:
Or
RewriteEngine On RewriteCond % {REQUEST_FILENAME }! -D RewriteCond % {REQUEST_FILENAME }! -F RewriteRule (. *) index. php/$1
The effect is as f
, but it is the malicious code and backdoor hidden by Xiao Hei. Hiding, basically any
None of the scanning and killing software can be found.
Preg_replace function prototype:
Mixed preg_replace (mixed pattern, mixed replacement, mixed subject [, int limit])
Note:
The/e modifier enables preg_replace () to treat the replacement parameter as PHP code (after appropriate reverse references are replaced ). Tip: make sure that
Replacement constitutes a valid
Build station over the process of friends like the site name with H1, but from the aesthetic considerations, to use logo images instead of H1, then need to hide the H1 within the text, but can not be unfriendly to the search engine, or lose the definition of H1 label meaning. In the CSS how to use the word, find the CSS hidden text method, there are the following: 1, Display:none; It is common to say that search engines may think that the hidden text is spam and ignored, and does not preserve
Analysis on tr hiding and display
This article mainly introduces the hidden and display problems of tr in detail. If you need them, please refer to them and hope to help you.
The Code is as follows:
Var ReturnrReason = function (){
If ($ ('# nextTransaction1 option: selected'). text () = "returning attachments "){
$ ("# ReturnrReason" cmd.css ('display ','');
$ ("# ReturnrReasonNote" cmd.css ('display ','');
} Else {
$ (": Checkbox [name = 'workflo
Solution to toggle () hiding problems
The toggle function is used in an instance, but the elements are hidden during the call. After searching, the cause is found. For more information, see
Recently I used the toggle function when writing an instance, but the elements will be hidden during the call. Previously I used multiple events in turn. The best way to do this is to search and view the jQuery API documentation on the internet. I finally found th
JS controls the display and hiding of HTML elements, jshtml
Javascript controls the display and hide of page controls. The two methods use two attributes of HTML style, the difference between the two methods is whether the hidden control still occupies space on the page.
Method 1:
Document. getElementById ("EleId"). style. visibility = "hidden"; document. getElementById ("EleId"). style. visibility = "visible ";
After the preceding method is used
Symptom:In Windows 7, QQ is automatically hidden when it is docked at the desktop edge. When the mouse pointer is close to the hidden area, all QQ interfaces are automatically displayed, however, it is automatically scaled back to hide a part of the interface.Cause:A Lenovo Auto Scroll Utility component is installed during the Hotkey drive of the new version integrated with System Interface. Windows can be automatically rolled.
Applicable systems:Windows 7
Solution:Method 1:In the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.