Skip to content

Commit

Permalink
add json slide
Browse files Browse the repository at this point in the history
  • Loading branch information
chile0101 committed Jul 31, 2019
1 parent 0d60b35 commit 7262e5a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
Binary file added js_json/JavaScript & JSON_20181210 (1).pptx
Binary file not shown.
37 changes: 35 additions & 2 deletions projects/javascript/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,41 @@
// console.log(2-3-"5")
// console.log("5"-2-3)

var obj = new Object();
console.log(obj.__proto__)
// var obj = new Object();
// console.log(obj.__proto__)

// var obj = {
// shiny: true,
// isShiny: function(){
// return this.shiny;
// }
// };
// console.log(obj.isShiny());


// var obj = {name: "chile",old:1};
// var obj1 = new Object();
// obj1.name = "hcile";
// obj1.old=1;
// console.log(obj);
// console.log(obj1)
// function Course(n,t){
// this.name = n;
// this.t = t;
// }
// var obj2 = new Course("chile",2)
// console.log(obj2)


var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log(this.responseText);
// console.log("chile");
}
};
xhttp.open("GET","https://www.w3schools.com/xml/ajax_info.txt",true)
xhttp.send();

</script>
</body>
Expand Down

0 comments on commit 7262e5a

Please sign in to comment.