1,
share the effect : pop-up canvas to render large images . 2, the progress bar performance percentage of the value d%, according to the progress of the growth of "font color" in order to express clarity also with the change
Workaround : Refer to Demo.
3, the input box to keep query parameters, the results list local refresh, pure Ajax feeling too troublesome, how to do this?
//processing information returned by the Server Update Professional drop-down boxfunctionrefreshresultlistelement (mode) {if(Xmlhttp.readystate = = 4) { if(Xmlhttp.status = = 200) { //here Xmlhttp.responsetext is the source code of the rendered page returned by a method requesting *controllerdocument.getElementById ("Resultlist"). InnerHTML =Xmlhttp.responsetext; if(mode = "Deletemanagecenter")
{ varSuccessornot = document.getElementById ("Successornot"); if(Sucessornot.value = = "false")
{Alert ("Failed to delete successfully!" Please check to see if the data is being used! "); } } } } }
......
workaround : jquery's
$.ajax ()
, Trigger Time
$.load
4, the page is bound to the document click event, how to prevent the mobile side click on the Close Popup box, will also trigger the document click event?
workaround : Block bubbling
5, with open the top right corner of the site is not a share button to customize the click on the Share button after the text and pictures?
workaround : Can not use JS alone to complete, need to participate in the background, specific solutions .
6. Question: Why can't I get the parent object in theDemo 's sub-object?
Solution : this The reference problem is clear.
analysis : Reference JavaScript Lab Lesson] What's this? and elaborate Javascript function chapter (ii): The working mechanism of this
7, interview: Personal resume in the personal site to write the original good or jquery good?
workaround : Write a bunch of native, jq write a bunch, so that the interviewer talk about what you are about that piece of talk. Like native chat native, like JQ chat JQ. Otherwise the interviewer asks you, you use JS, how not to JQ,JQ have what shortcoming? You use JQ how not JS, the original JS has what shortcomings. What are their merits. Only after writing, can you answer these questions. Face the interviewer's layer of shock from the bottom of the code.
Another suggestion :
1, Jq,extsjs; ---Library
2, Seajs,requirejs; ---modular loading
3, Angularjs,backbone; ---MVC,MVVM
4, Grunt,glup,fis;---engineering
These four inside their yards understand one of them. Not necessarily in depth, be sure to understand. To the interviewer: a solid foundation, a sense of nurturing.
The last category if you are interested, learn about the mobile side of the knowledge.
CSS3 new additions to which selectors, added which animations, tranisition,transform,animate between the usage, the difference. HTML5 added new tags, deleted tags, JS interface new additions. Related development and so on.
8. Photoswipe Source Code
Workaround :
(function() {//AMDdefine (Factroy)//CMD Exports.module (Factroy)} ())
Instance Code
2015.4.20