How to use map in mpvue to avoid pits

... is currently making a requirement. When the user zooms in to a certain level, the callout tag of marker is automatically displayed. When it is smaller than this zoom level, Hide the callout. However, in the process of my implementation, I found a serious problem: when I manipulate the...


The difference between the method in the js constructor and the method defined on the prototype

... The method in the constructor function Fun1 ( arg ) { this . arg = arg ; this . test = function ( ) { return this . arg ; } } The method inside the function is equivalent to the private variable of the function. If the newly created object needs to use the private variable inside, Use...


Baidu map interface (enter address to obtain latitude and longitude)

... 1, the original address http://www.cnblogs.com/jianglan/archive/2013/05/31/3108646.html these days are relatively free, I contacted the API of Baidu Map (developer center link address: http://developer.baidu.com), and found that the call is quite convenient. As long as you register a...


domReady implementation

... functionmyReady ( cb ) { //Judge whether it is a modern browser if(document.addEventListener){ document . addEventListener ( "DOMContentLoaded" , cb , false ) ; } else { IEContentLoaded ( cb ) ; } functionIEContentLoaded ( ) { vard = window . document ; vardone = false ; // Make sure cb...


Javascript design pattern system explanation and application

... Javascript Design pattern system explanation and application Chapter 1 Course introduction The need to learn the design pattern, the knowledge points included in the course, the curriculum, the learning premise 1-1 Chapter 2 Object Orientation Explain the object-oriented concepts in...


C# calculation expression (imitation calculator function)

... 一, use MSScriptControl to execute JavaScript code in C#. Anyone who has used an eval method in javascript knows his convenience and power. In C#, we can also execute a piece of javascript code through the Com component. The following code shows how to execute a mathematical expression...


Promise principle

... Promise Meaning: promise is a syntactic sugar called asynchronously. Its biggest advantage is to convert the nested callback call of the original ajax or httpXmlRequest into a chain call, which enhances the writing specification and avoids the region. The callback has drawbacks. Promise...


Get up this morning, dig up the "pit" of the two ideas

... 第一坑: I am in the static directory of the idea project, and then build a public and private directory, put some global in the public to use Plugins, such as jQ, bootstrap, easyUI, etc., when is referenced in a web page, use <script type="text/javascript" src="/static/public/jq/jquery...


jQuery study notes (four) jQuery traversal, DOM operation

... 一, DOM operation (additions and deletions change) 1, new node $(selector).append(content) inside the matching element Add a node at the end $(content).appendTo(selector) Append the new node to the last side of the matching element (the effect is the same as append, just swap the front...


React Use eslint's three code checking schemes to summarize, learn more about the point - make the code more perfect....

... 1, introduce ESLint is an extensible, each rule is independent, designed to be completely Configurable lint tool. can be used to detect code, avoid low-level errors can be used to standardize the development style of the code, unified code habits. 2, why use ESLint? Unicode code...