this.drawMap().on('click', function (params) {
var province = params.name;
that.mapStatus = province;
if(province==" Beijing "||province==" tianjin "||province==" changchun "||province==" Changsha "||province==" Hangzhou "||province==" kunming "||province==" Chengdu "){
that.showProvince(province); console.log(that.mapStatus)
}else if(province.indexOf(" District ")!=-1){
alert(province)
}
else{
that.$notify({
title: ' Warning ',
message: ' There is no data in this area , Try another area ',
type: 'warning',
top:100
});
}
});

to echart The initialization of the dom Node binding time to get the value of the click to render more related articles of the province and city

  1. An essay dom Node binding events

    Use jquery explain : js in , Give me a dom Node binding events can't be more common . Here under , If dom If it changes a lot , Here it is dom Binding events . For example, the code is as follows : li The node of , Events are bound : Click and you'll type it out ...

  2. About dom The node binding sliding event causes the browser to slide up and down -- Huang Pi Qiao

    1. Mobile development often needs to add custom left and right sliding events , However, after adding the left and right sliding event, the browser's big default event should be prevented , otherwise dom The sliding event of the node conflicts with the sliding of the browser itself , When it causes sliding, it will disappear and reappear instantly ...

  3. adopt DOM Node operation to get form information

    It's just something I used on a whim dom Node relationship to operate the story of the form .. This is how it happened , It's probably a platform with message function after registration , The administrator can reply to these messages after logging in . This page , It is through foreach Get... In the database ...

  4. js obtain dom Node of id obtain

    stay JavaScript in , The standard id The selector call syntax is : document.getElementById('myid').style.width = pc + "%"; however , Today I send ...

  5. Get current system time + Get current URL Key value ;

    One :// Current system time function show(){ var mydate = new Date(); var str = "" + mydate.getFullYear() + ...

  6. 1+X Certificate learning log ——DOM Node acquisition

    var oBox = document.getElementById('box');// obtain ID by box The node of var aBox = document.getElementsByTagName('di ...

  7. css No double-click dom The node is selected user-select:none

    css prohibit dom The node is selected :   When a dom The node appears when you click repeatedly. The node is selected , Sometimes you don't want this to happen , For example, we use a span perhaps a Labels act as buttons dom When the elements , Double click this button quickly , Just ...

  8. DOM Get the confusing attributes of the text in the node

    DOM In the node, it is easy to confuse the attributes for getting the text ,innerText, innerHTML, outerHTML, textContent, nodeValue. An instance : <!DOCTYPE html ...

  9. If dom Nodes are added to the page dynamically , How to solve the problem of binding events in page nodes .

    If dom Nodes are dynamically added to the page , You want to bind events to nodes , The traditional way is to traverse nodes , But there will be problems , There are other ways , Suddenly thought of It can bubble based on events , In this way, we are not afraid of the problem of adding nodes after the page without responding to events . It's stronger . Example code such as ...

Random recommendation

  1. UML Use case diagram summary

    Use case diagrams are mainly used to describe “ user . demand . System function unit ” The relationship between . It shows a system function model diagram that can be observed by an external user . [ purpose ]: Help the development team understand the functional requirements of the system in a visual way . The elements of a use case diagram are as follows : 1. ...

  2. [BIM]STEP Standards and EXPRESS Language

    Reference resources :http://blog.sina.com.cn/s/blog_620be62e0100iqyb.html (BIM Nouns and terms ( Four )- IFC/STEP/EXPRESS) IFC The standard uses formal numbers ...

  3. Recommended add-ons/plugins for Microsoft Visual Studio [closed]

    SmartPaster - (FREE) Copy/Paste code generator for strings AnkhSvn - (FREE) SVN Source Control Integ ...

  4. jQuery Property operation method of

    jQuery Property operation method The methods listed below get or set the DOM attribute . These methods are useful for XML Documentation and HTML The documentation is applicable , except :html(). Method describe addClass() To match ...

  5. Ajax Of load Method demonstration

    load The parameter form of the method is : load(url,[data],[callback]); among url For the request HTML Page URL Address .[data] Represents a message sent to the server key/value data .callback surface ...

  6. Javascript Common browser compatibility issues

    Common browser native javascript Compatibility issues fall into the following categories : One .Dom 1. obtain HTML Elements , Compatible with all browser methods :document.getElementById("id") With I ...

  7. php Add environment variables

    One . Configuration variables Right click on the computer - attribute - Advanced system setup - environment variable - System variables - double-click path, edit , take php Add the folder path to the back , I am a :D:\wamp64\bin\php\php5.6.25 Two . test When not joining ...

  8. Conditional Random Fields (CRF) I understand

    1,Conditional Random Fields

  9. Frame page height auto refresh Javascript Script

    Realization principle : load index.htm When , every other 1 Second, automatically call the script to refresh the frame page code Code benefits : Just set up index.html Script in frame page , No code needs to be set in the subpage loaded by the call . index.htm Code such as ...

  10. Python3+Selenium2 Complete automated test implementation journey ( One ): Automatic test environment construction

    1     Environment construction preparation (1)    download Python3 Version of the installation package , Download directly on the official website :Python Official website :https://www.python.org/ (2)    download Python Basic toolkit for p ...