Javascript?QUnit???????
???????????? ???????[ 2014/4/25 15:12:49 ] ??????????????? Javascript
???????javascript?????????????
??????????????????????????????????javascript?????????????????????????js????????????γ???????????????????????????????????????
????????????????javascript?????????????????????????????????Σ???????????????????????????????????????????
?????????????????????????????????vs??????????????????????????
???????????javascript?????????????????????????????£???????QUnit???????????????????????????????????????????????????
??????????????棬?????????????????????QUnit??
???????????????????
??????????????????????????????????????Visual Studio 2012??
??????????????????????????壺
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5 <title></title>
6 <script type="text/javascript" src="http://code.jquery.com/qunit/qunit-1.14.0.js"></script>
7 <link type="text/css" rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.14.0.css" />
8 </head>
9 <body>
10 <div id="qunit"></div>
11 <div id="qunit-fixture"></div>
12 <script type="text/javascript">
13 //??????????????д????
14 </script>
15 </body>
16 </html>
??????????????????CDN??·????????????CDN????????????????????????????????????????????????????????????
????????????????????
????1.??????????????????????
1 <script type="text/javascript">
2 function add(a?? b) {
3 return a + b;
4 }
5
6 test("Test Method 1"?? function () {
7 ok(add(1?? 2) == 3?? "Test Method 1 Pass");
8 });
9 </script>
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11