From 743044407e35a10ff824ef18cb883ac2b66e2d12 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 25 四月 2024 17:40:54 +0800 Subject: [PATCH] 新增自动评估细则界面 --- src/test.js | 42 +++++++++++++++++++++++++++--------------- 1 files changed, 27 insertions(+), 15 deletions(-) diff --git a/src/test.js b/src/test.js index cca19e1..547db41 100644 --- a/src/test.js +++ b/src/test.js @@ -1,17 +1,29 @@ -const shape = { - radius: 9, - d() { - return this.radius * 2; - }, - p: () => 2 * Math.PI * this.radius, -}; +// const shape = { +// radius: 9, +// d() { +// return this.radius * 2; +// }, +// p: () => 2 * Math.PI * this.radius, +// }; -console.log(shape.d()); -console.log(shape.p()); +// console.log(shape.d()); +// console.log(shape.p()); -const str = 'abc'; -if (str[0] >= 'a' && str[0] <= 'z') { - let a = parseInt(str[0]); - a -= 32; - console.log(a); -} +// const str = 'abc'; +// if (str[0] >= 'a' && str[0] <= 'z') { +// let a = parseInt(str[0]); +// a -= 32; +// console.log(a); +// } + + +// let a = 4 +// let b = new Number(4) +// let c = '4' +// console.log(a == b); +// console.log(a === b); +// console.log(a == c); +// console.log(b === c); + +var val = 'smtg' +console.log('Value is' + ((val === 'smtg') ? 'Something' : 'Nothing')); \ No newline at end of file -- Gitblit v1.9.3