Demo entry 6351150

温叶

   

Submitted by anonymous on Mar 19, 2017 at 10:17
Language: JavaScript. Code size: 424 Bytes.

<template>
  <div id="app">
    <img src="./assets/logo.png">
    <h1></h1>
    <h2>{{msg}}</h2>
    <h2>1234567893是不是素数{{prime}}</h2>
  </div>
</template>

<script>
import sqrt from "./lib"
import {square, IsPrime} from "./lib"
console.log(square(4))

export default {
  name: 'app',
  data () {
    return {
      msg: 'sqrt(16)=' + sqrt(16),
      prime : IsPrime(1234567893)
    }
  }
}
</script>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).