JavaScript common methods

JSON.stringify()

method is used to convert a JavaScript value to a JSON string.

http://www.runoob.com/js/javascript-json-stringify.html

 

onhashchange event

Execute JavaScript when the anchor section changes:

http://www.runoob.com/jsref/event-onhashchange.html

 

shift() method

The shift() method is used to remove the first element of an array from it and returns the value of the first element.

http://www.w3school.com.cn/jsref/jsref_shift.asp

 

load() method

Use an AJAX request to change the text of the div element:

$("button").click(function(){
  $("div").load('demo_ajax_load.txt');
});

http://www.w3school.com.cn/jquery/ajax_load.asp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325074453&siteId=291194637