Vue practice nine: 03_01_ view data types with typeof

Demo online address:
https://sx00xs.github.io/test/19/index.html
----------------------------- ----------------------------------
IDE: VSCode
file formats: .vue
resolve to be completed :()

<template>
  <div id="app">
<pre>
&lt;script type="text/javascript"&gt;
    alert(typeof 12345);    <span>//输出number</span>
    alert(typeof "abc");    <span>//输出string</span>
    alert(typeof document);    <span>//输出object</span>
&lt;/script&gt;
</pre>
  </div>
</template>
<script>
export default {
  created(){
    alert(typeof 12345);
    alert(typeof 'abc');
    alert(typeof document);    
  }
}
</script>

 

Guess you like

Origin www.cnblogs.com/sx00xs/p/11266054.html