changes
This commit is contained in:
parent
be25438052
commit
f78292b122
|
@ -0,0 +1,49 @@
|
|||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#app{
|
||||
display: flex;
|
||||
}
|
||||
.search{
|
||||
margin: 50px 10px;
|
||||
border: 1px solid gray;
|
||||
width: 50%;
|
||||
border-radius: 20px 20px 0 0;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
}
|
||||
input{
|
||||
outline: none;
|
||||
border: none;
|
||||
flex: 1;
|
||||
height: 50px;
|
||||
margin: 0 20px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.size{
|
||||
font-size: 30px;
|
||||
line-height: 50px;
|
||||
margin: 0 2%;
|
||||
}
|
||||
ul{
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
}
|
||||
li{
|
||||
margin: 24px 0;
|
||||
}
|
||||
.list{
|
||||
border: 1px dashed gray;
|
||||
}
|
||||
.search,.list{
|
||||
flex: 1;
|
||||
}
|
||||
li{
|
||||
display: flex;
|
||||
}
|
||||
li>div{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
border-right: 1px dashed gray;
|
||||
}
|
|
@ -6,57 +6,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="../../../00-tools/Fontawesome/css/font-awesome.min.css">
|
||||
<style>
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#app{
|
||||
display: flex;
|
||||
}
|
||||
.search{
|
||||
margin: 50px 10px;
|
||||
border: 1px solid gray;
|
||||
width: 50%;
|
||||
border-radius: 20px 20px 0 0;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
}
|
||||
input{
|
||||
outline: none;
|
||||
border: none;
|
||||
flex: 1;
|
||||
height: 50px;
|
||||
margin: 0 20px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.size{
|
||||
font-size: 30px;
|
||||
line-height: 50px;
|
||||
margin: 0 2%;
|
||||
}
|
||||
ul{
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
}
|
||||
li{
|
||||
margin: 24px 0;
|
||||
}
|
||||
.list{
|
||||
border: 1px dashed gray;
|
||||
}
|
||||
.search,.list{
|
||||
flex: 1;
|
||||
}
|
||||
li{
|
||||
display: flex;
|
||||
}
|
||||
li>div{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
border-right: 1px dashed gray;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="../css/css.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
|
@ -82,36 +32,5 @@
|
|||
</div>
|
||||
</body>
|
||||
<script src="../../../00-tools/JavaScript/vue.js"></script>
|
||||
<script>
|
||||
new Vue({
|
||||
el:"#app",
|
||||
data:{
|
||||
list:[
|
||||
{ id: 1 , name: "Vue框架开发",week:"周一上午第三到四节"},
|
||||
{ id: 2, name: "大数据原理", week: "周二上午第一至四节" },
|
||||
{ id: 3, name: "大数据挖掘", week: "周二下午第一至四节" },
|
||||
{id: 4, name: "数据库管理", week: "周三上午第三至四节" },
|
||||
{ id: 5, name: "大数据认证", week: "周四上午第三至四节" },
|
||||
{ id: 6, name: "网络爬虫", week: "周五下午第一至四节" },
|
||||
{ id: 7, name: "数据结构与算法", week: "周一上午第三到四节" },
|
||||
{ id: 8, name: "移动应用开发", week: "周一下午第三至四节" },
|
||||
{ id: 9, name: "WEB应用开发", week: "周二上午第一至二节" },
|
||||
{ id: 10, name: "大学体育-羽毛球", week: "周四下午第三至四节" },
|
||||
{ id: 11, name: "云计算技术概论", week: "周五上午第一至二节" },
|
||||
{ id: 12, name: "面向对象程序设计", week: "周五上午第三至四节" },
|
||||
],
|
||||
keyword:"",
|
||||
searchIn:[]
|
||||
},
|
||||
computed:{
|
||||
item(){
|
||||
let find_element= this.list.filter((lists)=>{
|
||||
return lists.name.indexOf(this.keyword)!==-1 || lists.week.indexOf(this.keyword)!==-1
|
||||
})
|
||||
this.searchIn.push(find_element)
|
||||
return find_element
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<script src="../js/index.js"></script>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
new Vue({
|
||||
el: "#app",
|
||||
data: {
|
||||
list: [
|
||||
{ id: 1, name: "Vue框架开发", week: "周一上午第三到四节" },
|
||||
{ id: 2, name: "大数据原理", week: "周二上午第一至四节" },
|
||||
{ id: 3, name: "大数据挖掘", week: "周二下午第一至四节" },
|
||||
{ id: 4, name: "数据库管理", week: "周三上午第三至四节" },
|
||||
{ id: 5, name: "大数据认证", week: "周四上午第三至四节" },
|
||||
{ id: 6, name: "网络爬虫", week: "周五下午第一至四节" },
|
||||
{ id: 7, name: "数据结构与算法", week: "周一上午第三到四节" },
|
||||
{ id: 8, name: "移动应用开发", week: "周一下午第三至四节" },
|
||||
{ id: 9, name: "WEB应用开发", week: "周二上午第一至二节" },
|
||||
{ id: 10, name: "大学体育-羽毛球", week: "周四下午第三至四节" },
|
||||
{ id: 11, name: "云计算技术概论", week: "周五上午第一至二节" },
|
||||
{ id: 12, name: "面向对象程序设计", week: "周五上午第三至四节" },
|
||||
],
|
||||
keyword: "",
|
||||
searchIn: []
|
||||
},
|
||||
computed: {
|
||||
item() {
|
||||
let find_element = this.list.filter((lists) => {
|
||||
return lists.name.indexOf(this.keyword) !== -1 || lists.week.indexOf(this.keyword) !== -1
|
||||
})
|
||||
this.searchIn.push(find_element)
|
||||
return find_element
|
||||
}
|
||||
}
|
||||
})
|
|
@ -1,288 +1,288 @@
|
|||
{
|
||||
"name": "webpack",
|
||||
"name": "webpack02",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "webpack.config.js",
|
||||
"dependencies": {
|
||||
"acorn": "^5.7.4",
|
||||
"acorn-dynamic-import": "^2.0.2",
|
||||
"ajv": "^5.5.2",
|
||||
"ajv-keywords": "^2.1.1",
|
||||
"acorn-dynamic-import": "^2.0.2",
|
||||
"acorn": "^5.7.4",
|
||||
"align-text": "^0.1.4",
|
||||
"ansi-regex": "^2.1.1",
|
||||
"ajv-keywords": "^2.1.1",
|
||||
"arr-diff": "^4.0.0",
|
||||
"ansi-regex": "^2.1.1",
|
||||
"array-unique": "^0.3.2",
|
||||
"arr-flatten": "^1.1.0",
|
||||
"arr-union": "^3.1.0",
|
||||
"array-unique": "^0.3.2",
|
||||
"anymatch": "^3.1.2",
|
||||
"assert": "^1.5.0",
|
||||
"asn1.js": "^5.4.1",
|
||||
"assign-symbols": "^1.0.0",
|
||||
"async-each": "^1.0.3",
|
||||
"async": "^2.6.4",
|
||||
"atob": "^2.1.2",
|
||||
"assign-symbols": "^1.0.0",
|
||||
"async": "^2.6.4",
|
||||
"async-each": "^1.0.3",
|
||||
"anymatch": "^3.1.2",
|
||||
"base": "^0.11.2",
|
||||
"base64-js": "^1.5.1",
|
||||
"big.js": "^5.2.2",
|
||||
"binary-extensions": "^2.2.0",
|
||||
"bn.js": "^5.2.1",
|
||||
"asn1.js": "^5.4.1",
|
||||
"braces": "^3.0.2",
|
||||
"brorand": "^1.1.0",
|
||||
"base64-js": "^1.5.1",
|
||||
"browserify-aes": "^1.2.0",
|
||||
"brorand": "^1.1.0",
|
||||
"browserify-cipher": "^1.0.1",
|
||||
"browserify-des": "^1.0.2",
|
||||
"browserify-rsa": "^4.1.0",
|
||||
"browserify-sign": "^4.2.1",
|
||||
"bn.js": "^5.2.1",
|
||||
"browserify-zlib": "^0.2.0",
|
||||
"buffer": "^4.9.2",
|
||||
"binary-extensions": "^2.2.0",
|
||||
"buffer-xor": "^1.0.3",
|
||||
"builtin-status-codes": "^3.0.0",
|
||||
"cache-base": "^1.0.1",
|
||||
"camelcase": "^4.1.0",
|
||||
"browserify-rsa": "^4.1.0",
|
||||
"center-align": "^0.1.3",
|
||||
"browserify-sign": "^4.2.1",
|
||||
"buffer": "^4.9.2",
|
||||
"camelcase": "^4.1.0",
|
||||
"chokidar": "^3.5.3",
|
||||
"cipher-base": "^1.0.4",
|
||||
"class-utils": "^0.3.6",
|
||||
"cliui": "^3.2.0",
|
||||
"cipher-base": "^1.0.4",
|
||||
"component-emitter": "^1.3.0",
|
||||
"co": "^4.6.0",
|
||||
"code-point-at": "^1.1.0",
|
||||
"collection-visit": "^1.0.0",
|
||||
"component-emitter": "^1.3.0",
|
||||
"console-browserify": "^1.2.0",
|
||||
"constants-browserify": "^1.0.0",
|
||||
"copy-descriptor": "^0.1.1",
|
||||
"core-util-is": "^1.0.3",
|
||||
"create-ecdh": "^4.0.4",
|
||||
"create-hash": "^1.2.0",
|
||||
"create-hmac": "^1.1.7",
|
||||
"copy-descriptor": "^0.1.1",
|
||||
"constants-browserify": "^1.0.0",
|
||||
"console-browserify": "^1.2.0",
|
||||
"cross-spawn": "^5.1.0",
|
||||
"crypto-browserify": "^3.12.0",
|
||||
"d": "^1.0.1",
|
||||
"debug": "^2.6.9",
|
||||
"d": "^1.0.1",
|
||||
"create-ecdh": "^4.0.4",
|
||||
"decamelize": "^1.2.0",
|
||||
"decode-uri-component": "^0.2.0",
|
||||
"define-property": "^2.0.2",
|
||||
"des.js": "^1.0.1",
|
||||
"core-util-is": "^1.0.3",
|
||||
"diffie-hellman": "^5.0.3",
|
||||
"decode-uri-component": "^0.2.0",
|
||||
"domain-browser": "^1.2.0",
|
||||
"elliptic": "^6.5.4",
|
||||
"emojis-list": "^3.0.0",
|
||||
"enhanced-resolve": "^3.4.1",
|
||||
"errno": "^0.1.8",
|
||||
"error-ex": "^1.3.2",
|
||||
"enhanced-resolve": "^3.4.1",
|
||||
"es5-ext": "^0.10.62",
|
||||
"des.js": "^1.0.1",
|
||||
"es6-iterator": "^2.0.3",
|
||||
"elliptic": "^6.5.4",
|
||||
"es6-map": "^0.1.5",
|
||||
"es6-set": "^0.1.6",
|
||||
"es6-symbol": "^3.1.3",
|
||||
"es6-weak-map": "^2.0.3",
|
||||
"escope": "^3.6.0",
|
||||
"esrecurse": "^4.3.0",
|
||||
"estraverse": "^4.3.0",
|
||||
"errno": "^0.1.8",
|
||||
"event-emitter": "^0.3.5",
|
||||
"es6-weak-map": "^2.0.3",
|
||||
"estraverse": "^4.3.0",
|
||||
"events": "^3.3.0",
|
||||
"evp_bytestokey": "^1.0.3",
|
||||
"esrecurse": "^4.3.0",
|
||||
"execa": "^0.7.0",
|
||||
"expand-brackets": "^2.1.4",
|
||||
"ext": "^1.7.0",
|
||||
"es6-set": "^0.1.6",
|
||||
"expand-brackets": "^2.1.4",
|
||||
"extend-shallow": "^3.0.2",
|
||||
"extglob": "^2.0.4",
|
||||
"fast-deep-equal": "^1.1.0",
|
||||
"fast-json-stable-stringify": "^2.1.0",
|
||||
"fill-range": "^7.0.1",
|
||||
"find-up": "^2.1.0",
|
||||
"for-in": "^1.0.2",
|
||||
"find-up": "^2.1.0",
|
||||
"fill-range": "^7.0.1",
|
||||
"fragment-cache": "^0.2.1",
|
||||
"function-bind": "^1.1.1",
|
||||
"get-caller-file": "^1.0.3",
|
||||
"function-bind": "^1.1.1",
|
||||
"get-stream": "^3.0.0",
|
||||
"get-value": "^2.0.6",
|
||||
"glob-parent": "^5.1.2",
|
||||
"graceful-fs": "^4.2.10",
|
||||
"has": "^1.0.3",
|
||||
"fast-json-stable-stringify": "^2.1.0",
|
||||
"has-flag": "^2.0.0",
|
||||
"has": "^1.0.3",
|
||||
"has-value": "^1.0.0",
|
||||
"glob-parent": "^5.1.2",
|
||||
"has-values": "^1.0.0",
|
||||
"hash-base": "^3.1.0",
|
||||
"hash.js": "^1.1.7",
|
||||
"hmac-drbg": "^1.0.1",
|
||||
"hosted-git-info": "^2.8.9",
|
||||
"https-browserify": "^1.0.0",
|
||||
"ieee754": "^1.2.1",
|
||||
"inherits": "^2.0.4",
|
||||
"interpret": "^1.4.0",
|
||||
"hash-base": "^3.1.0",
|
||||
"graceful-fs": "^4.2.10",
|
||||
"https-browserify": "^1.0.0",
|
||||
"hosted-git-info": "^2.8.9",
|
||||
"is-accessor-descriptor": "^1.0.0",
|
||||
"invert-kv": "^1.0.0",
|
||||
"is-arrayish": "^0.2.1",
|
||||
"ieee754": "^1.2.1",
|
||||
"is-binary-path": "^2.1.0",
|
||||
"is-buffer": "^1.1.6",
|
||||
"is-core-module": "^2.11.0",
|
||||
"interpret": "^1.4.0",
|
||||
"is-data-descriptor": "^1.0.0",
|
||||
"is-descriptor": "^1.0.2",
|
||||
"is-buffer": "^1.1.6",
|
||||
"is-extendable": "^1.0.1",
|
||||
"is-extglob": "^2.1.1",
|
||||
"is-fullwidth-code-point": "^2.0.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"is-extglob": "^2.1.1",
|
||||
"is-number": "^7.0.0",
|
||||
"is-core-module": "^2.11.0",
|
||||
"is-plain-object": "^2.0.4",
|
||||
"is-stream": "^1.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"is-windows": "^1.0.2",
|
||||
"isarray": "^1.0.0",
|
||||
"isexe": "^2.0.0",
|
||||
"isobject": "^3.0.1",
|
||||
"json-loader": "^0.5.7",
|
||||
"json-schema-traverse": "^0.3.1",
|
||||
"isexe": "^2.0.0",
|
||||
"json5": "^0.5.1",
|
||||
"kind-of": "^3.2.2",
|
||||
"isobject": "^3.0.1",
|
||||
"lazy-cache": "^1.0.4",
|
||||
"json-schema-traverse": "^0.3.1",
|
||||
"kind-of": "^3.2.2",
|
||||
"lcid": "^1.0.0",
|
||||
"load-json-file": "^2.0.0",
|
||||
"loader-runner": "^2.4.0",
|
||||
"loader-utils": "^1.4.2",
|
||||
"locate-path": "^2.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"locate-path": "^2.0.0",
|
||||
"loader-runner": "^2.4.0",
|
||||
"longest": "^1.0.1",
|
||||
"lru-cache": "^4.1.5",
|
||||
"map-cache": "^0.2.2",
|
||||
"map-visit": "^1.0.0",
|
||||
"lru-cache": "^4.1.5",
|
||||
"md5.js": "^1.3.5",
|
||||
"mem": "^1.1.0",
|
||||
"memory-fs": "^0.4.1",
|
||||
"micromatch": "^3.1.10",
|
||||
"miller-rabin": "^4.0.1",
|
||||
"mem": "^1.1.0",
|
||||
"mimic-fn": "^1.2.0",
|
||||
"minimalistic-assert": "^1.0.1",
|
||||
"micromatch": "^3.1.10",
|
||||
"miller-rabin": "^4.0.1",
|
||||
"minimalistic-crypto-utils": "^1.0.1",
|
||||
"minimist": "^1.2.7",
|
||||
"mixin-deep": "^1.3.2",
|
||||
"mkdirp": "^0.5.6",
|
||||
"ms": "^2.0.0",
|
||||
"loader-utils": "^1.4.2",
|
||||
"mixin-deep": "^1.3.2",
|
||||
"minimist": "^1.2.7",
|
||||
"nanomatch": "^1.2.13",
|
||||
"neo-async": "^2.6.2",
|
||||
"mkdirp": "^0.5.6",
|
||||
"next-tick": "^1.1.0",
|
||||
"node-libs-browser": "^2.2.1",
|
||||
"normalize-path": "^3.0.0",
|
||||
"normalize-package-data": "^2.5.0",
|
||||
"npm-run-path": "^2.0.2",
|
||||
"node-libs-browser": "^2.2.1",
|
||||
"number-is-nan": "^1.0.1",
|
||||
"normalize-path": "^3.0.0",
|
||||
"npm-run-path": "^2.0.2",
|
||||
"object-assign": "^4.1.1",
|
||||
"object-copy": "^0.1.0",
|
||||
"object-visit": "^1.0.1",
|
||||
"object.pick": "^1.3.0",
|
||||
"os-browserify": "^0.3.0",
|
||||
"object-visit": "^1.0.1",
|
||||
"object-copy": "^0.1.0",
|
||||
"object.pick": "^1.3.0",
|
||||
"p-limit": "^1.3.0",
|
||||
"os-locale": "^2.1.0",
|
||||
"p-finally": "^1.0.0",
|
||||
"p-limit": "^1.3.0",
|
||||
"p-locate": "^2.0.0",
|
||||
"p-try": "^1.0.0",
|
||||
"pako": "^1.0.11",
|
||||
"parse-asn1": "^5.1.6",
|
||||
"p-locate": "^2.0.0",
|
||||
"parse-json": "^2.2.0",
|
||||
"pascalcase": "^0.1.1",
|
||||
"path-browserify": "^0.0.1",
|
||||
"path-dirname": "^1.0.2",
|
||||
"pascalcase": "^0.1.1",
|
||||
"path-exists": "^3.0.0",
|
||||
"path-is-absolute": "^1.0.1",
|
||||
"pako": "^1.0.11",
|
||||
"path-key": "^2.0.1",
|
||||
"path-parse": "^1.0.7",
|
||||
"path-is-absolute": "^1.0.1",
|
||||
"parse-asn1": "^5.1.6",
|
||||
"path-type": "^2.0.0",
|
||||
"pbkdf2": "^3.1.2",
|
||||
"picomatch": "^2.3.1",
|
||||
"pify": "^2.3.0",
|
||||
"posix-character-classes": "^0.1.1",
|
||||
"process": "^0.11.10",
|
||||
"process-nextick-args": "^2.0.1",
|
||||
"pify": "^2.3.0",
|
||||
"prr": "^1.0.1",
|
||||
"process": "^0.11.10",
|
||||
"path-parse": "^1.0.7",
|
||||
"pseudomap": "^1.0.2",
|
||||
"public-encrypt": "^4.0.3",
|
||||
"punycode": "^1.4.1",
|
||||
"querystring": "^0.2.0",
|
||||
"querystring-es3": "^0.2.1",
|
||||
"picomatch": "^2.3.1",
|
||||
"randombytes": "^2.1.0",
|
||||
"punycode": "^1.4.1",
|
||||
"randomfill": "^1.0.4",
|
||||
"querystring-es3": "^0.2.1",
|
||||
"read-pkg": "^2.0.0",
|
||||
"read-pkg-up": "^2.0.0",
|
||||
"readable-stream": "^2.3.7",
|
||||
"readdirp": "^3.6.0",
|
||||
"regex-not": "^1.0.2",
|
||||
"readable-stream": "^2.3.7",
|
||||
"require-directory": "^2.1.1",
|
||||
"repeat-string": "^1.6.1",
|
||||
"remove-trailing-separator": "^1.1.0",
|
||||
"repeat-element": "^1.1.4",
|
||||
"repeat-string": "^1.6.1",
|
||||
"require-directory": "^2.1.1",
|
||||
"require-main-filename": "^1.0.1",
|
||||
"resolve": "^1.22.1",
|
||||
"resolve-url": "^0.2.1",
|
||||
"resolve": "^1.22.1",
|
||||
"ripemd160": "^2.0.2",
|
||||
"ret": "^0.1.15",
|
||||
"right-align": "^0.1.3",
|
||||
"ripemd160": "^2.0.2",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"safe-regex": "^1.1.0",
|
||||
"safer-buffer": "^2.1.2",
|
||||
"semver": "^5.7.1",
|
||||
"safe-regex": "^1.1.0",
|
||||
"set-blocking": "^2.0.0",
|
||||
"set-value": "^2.0.1",
|
||||
"safer-buffer": "^2.1.2",
|
||||
"setimmediate": "^1.0.5",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"set-value": "^2.0.1",
|
||||
"shebang-regex": "^1.0.0",
|
||||
"sha.js": "^2.4.11",
|
||||
"shebang-command": "^1.2.0",
|
||||
"shebang-regex": "^1.0.0",
|
||||
"signal-exit": "^3.0.7",
|
||||
"snapdragon": "^0.8.2",
|
||||
"snapdragon-node": "^2.1.1",
|
||||
"snapdragon-util": "^3.0.1",
|
||||
"source-map": "^0.5.7",
|
||||
"snapdragon-util": "^3.0.1",
|
||||
"snapdragon": "^0.8.2",
|
||||
"spdx-correct": "^3.1.1",
|
||||
"source-list-map": "^2.0.1",
|
||||
"spdx-exceptions": "^2.3.0",
|
||||
"source-map-resolve": "^0.5.3",
|
||||
"source-map-url": "^0.4.1",
|
||||
"spdx-correct": "^3.1.1",
|
||||
"spdx-exceptions": "^2.3.0",
|
||||
"spdx-expression-parse": "^3.0.1",
|
||||
"spdx-license-ids": "^3.0.12",
|
||||
"split-string": "^3.1.0",
|
||||
"signal-exit": "^3.0.7",
|
||||
"static-extend": "^0.1.2",
|
||||
"stream-browserify": "^2.0.2",
|
||||
"split-string": "^3.1.0",
|
||||
"spdx-expression-parse": "^3.0.1",
|
||||
"stream-http": "^2.8.3",
|
||||
"stream-browserify": "^2.0.2",
|
||||
"string-width": "^2.1.1",
|
||||
"string_decoder": "^1.3.0",
|
||||
"spdx-license-ids": "^3.0.12",
|
||||
"strip-ansi": "^3.0.1",
|
||||
"string_decoder": "^1.3.0",
|
||||
"tapable": "^0.2.9",
|
||||
"strip-bom": "^3.0.0",
|
||||
"strip-eof": "^1.0.0",
|
||||
"supports-color": "^4.5.0",
|
||||
"supports-preserve-symlinks-flag": "^1.0.0",
|
||||
"tapable": "^0.2.9",
|
||||
"timers-browserify": "^2.0.12",
|
||||
"to-arraybuffer": "^1.0.1",
|
||||
"supports-preserve-symlinks-flag": "^1.0.0",
|
||||
"supports-color": "^4.5.0",
|
||||
"to-object-path": "^0.3.0",
|
||||
"to-arraybuffer": "^1.0.1",
|
||||
"to-regex": "^3.0.2",
|
||||
"to-regex-range": "^5.0.1",
|
||||
"tty-browserify": "^0.0.0",
|
||||
"type": "^1.2.0",
|
||||
"uglify-js": "^2.8.29",
|
||||
"uglify-to-browserify": "^1.0.2",
|
||||
"tty-browserify": "^0.0.0",
|
||||
"uglify-js": "^2.8.29",
|
||||
"type": "^1.2.0",
|
||||
"uglifyjs-webpack-plugin": "^0.4.6",
|
||||
"union-value": "^1.0.1",
|
||||
"unset-value": "^1.0.0",
|
||||
"upath": "^1.2.0",
|
||||
"urix": "^0.1.0",
|
||||
"url": "^0.11.0",
|
||||
"unset-value": "^1.0.0",
|
||||
"use": "^3.1.1",
|
||||
"union-value": "^1.0.1",
|
||||
"upath": "^1.2.0",
|
||||
"util": "^0.11.1",
|
||||
"util-deprecate": "^1.0.2",
|
||||
"validate-npm-package-license": "^3.0.4",
|
||||
"vm-browserify": "^1.1.2",
|
||||
"watchpack": "^1.7.5",
|
||||
"watchpack-chokidar2": "^2.0.1",
|
||||
"webpack": "^3.6.0",
|
||||
"util-deprecate": "^1.0.2",
|
||||
"watchpack-chokidar2": "^2.0.1",
|
||||
"validate-npm-package-license": "^3.0.4",
|
||||
"webpack-sources": "^1.4.3",
|
||||
"which": "^1.3.1",
|
||||
"which-module": "^2.0.0",
|
||||
"watchpack": "^1.7.5",
|
||||
"window-size": "^0.1.0",
|
||||
"wordwrap": "^0.0.2",
|
||||
"which-module": "^2.0.0",
|
||||
"wrap-ansi": "^2.1.0",
|
||||
"xtend": "^4.0.2",
|
||||
"y18n": "^3.2.2",
|
||||
"yallist": "^2.1.2",
|
||||
"yargs": "^8.0.2",
|
||||
"yargs-parser": "^7.0.0"
|
||||
"xtend": "^4.0.2",
|
||||
"wordwrap": "^0.0.2",
|
||||
"yargs-parser": "^7.0.0",
|
||||
"y18n": "^3.2.2"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
<script src="./dist/result.js"></script>
|
||||
</html>
|
|
@ -1,37 +0,0 @@
|
|||
function add(n1,n2){
|
||||
return n1+n2;
|
||||
}
|
||||
function sub(n1,n2){
|
||||
return n1-n2;
|
||||
}
|
||||
function mult(n1,n2){
|
||||
return n1*n2
|
||||
}
|
||||
function divi(n1,n2){
|
||||
let t=0
|
||||
if(n1<n2){
|
||||
t=n2;n2=n1;n1=t
|
||||
}
|
||||
return n1/n2
|
||||
}
|
||||
function rem(n1,n2){
|
||||
let t = 0
|
||||
if (n1 < n2) {
|
||||
t = n2; n2 = n1; n1 = t
|
||||
}
|
||||
return n1 % n2
|
||||
}
|
||||
function rect_area(n1,n2){
|
||||
if(n1==n2){
|
||||
return n1*n1
|
||||
}else{
|
||||
return n1*n2
|
||||
}
|
||||
}
|
||||
const pi=3.14
|
||||
function Area_of_circle(r){
|
||||
return pi*r*r
|
||||
}
|
||||
export{
|
||||
add, sub, mult, divi, rem, rect_area, Area_of_circle
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
import * as calc from "./calc";
|
||||
let n1=prompt("请输入第一个值")
|
||||
let n2=prompt("请输入第二个值")
|
||||
let r=prompt("请输入半径")
|
||||
console.log(`这是两数进行相加的结果${calc.add(n1, n2) }`);
|
||||
console.log(`这是两数进行相减的结果${calc.sub(n1, n2)}`);
|
||||
console.log(`这是两数进行相乘的结果${calc.mult(n1, n2)}`);
|
||||
console.log(`这是两数进行相除的结果${calc.divi(n1, n2)}`);
|
||||
console.log(`这是两数进行求余的结果${calc.rem(n1, n2)}`);
|
||||
console.log(`这是长方形/正方形的面积${calc.rect_area(n1, n2)}`);
|
||||
console.log(`这是圆的面积${calc.Area_of_circle(r)}`);
|
|
@ -69,65 +69,43 @@
|
|||
|
||||
"use strict";
|
||||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__calc__ = __webpack_require__(1);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mathTools__ = __webpack_require__(1);
|
||||
|
||||
let n1=prompt("请输入第一个值")
|
||||
let n2=prompt("请输入第二个值")
|
||||
let r=prompt("请输入半径")
|
||||
console.log(`这是两数进行相加的结果${__WEBPACK_IMPORTED_MODULE_0__calc__["b" /* add */](n1, n2) }`);
|
||||
console.log(`这是两数进行相减的结果${__WEBPACK_IMPORTED_MODULE_0__calc__["g" /* sub */](n1, n2)}`);
|
||||
console.log(`这是两数进行相乘的结果${__WEBPACK_IMPORTED_MODULE_0__calc__["d" /* mult */](n1, n2)}`);
|
||||
console.log(`这是两数进行相除的结果${__WEBPACK_IMPORTED_MODULE_0__calc__["c" /* divi */](n1, n2)}`);
|
||||
console.log(`这是两数进行求余的结果${__WEBPACK_IMPORTED_MODULE_0__calc__["f" /* rem */](n1, n2)}`);
|
||||
console.log(`这是长方形/正方形的面积${__WEBPACK_IMPORTED_MODULE_0__calc__["e" /* rect_area */](n1, n2)}`);
|
||||
console.log(`这是圆的面积${__WEBPACK_IMPORTED_MODULE_0__calc__["a" /* Area_of_circle */](r)}`);
|
||||
let n1 = parseInt(prompt("请输入第一个数值"))
|
||||
let n2 = parseInt(prompt("请输入第二个数值"))
|
||||
console.log("这是两数相加的结果:"+__WEBPACK_IMPORTED_MODULE_0__mathTools__["c" /* jia */](n1, n2));
|
||||
console.log("这是两数相减的结果:" +__WEBPACK_IMPORTED_MODULE_0__mathTools__["d" /* jian */](n1,n2))
|
||||
console.log("这是两数相乘的结果"+__WEBPACK_IMPORTED_MODULE_0__mathTools__["a" /* cheng */](n1, n2));
|
||||
console.log("这是两数相除的结果"+__WEBPACK_IMPORTED_MODULE_0__mathTools__["b" /* chu */](n1, n2));
|
||||
|
||||
/***/ }),
|
||||
/* 1 */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return add; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return sub; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return mult; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return divi; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return rem; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return rect_area; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Area_of_circle; });
|
||||
function add(n1,n2){
|
||||
return n1+n2;
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jia; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return jian; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cheng; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return chu; });
|
||||
let t
|
||||
function jia(n1,n2){
|
||||
return n1*1+n2*1
|
||||
}
|
||||
function sub(n1,n2){
|
||||
return n1-n2;
|
||||
function jian(n1,n2){
|
||||
if (n1 < n2) {
|
||||
t = n2; n2 = n1, n1 = t
|
||||
}
|
||||
function mult(n1,n2){
|
||||
return n1-n2
|
||||
}
|
||||
function cheng(n1,n2){
|
||||
return n1*n2
|
||||
}
|
||||
function divi(n1,n2){
|
||||
let t=0
|
||||
function chu(n1,n2){
|
||||
if (n1 < n2) {
|
||||
t=n2;n2=n1;n1=t
|
||||
t = n2; n2 = n1, n1 = t
|
||||
}
|
||||
return n1/n2
|
||||
}
|
||||
function rem(n1,n2){
|
||||
let t = 0
|
||||
if (n1 < n2) {
|
||||
t = n2; n2 = n1; n1 = t
|
||||
}
|
||||
return n1 % n2
|
||||
}
|
||||
function rect_area(n1,n2){
|
||||
if(n1==n2){
|
||||
return n1*n1
|
||||
}else{
|
||||
return n1*n2
|
||||
}
|
||||
}
|
||||
const pi=3.14
|
||||
function Area_of_circle(r){
|
||||
return pi*r*r
|
||||
}
|
||||
|
||||
|
||||
/***/ })
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "webpack_study",
|
||||
"name": "webpack_prect",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "webpack.config.js",
|
||||
|
@ -8,5 +8,8 @@
|
|||
"serve":"webpack"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"webpack": "^3.6.0"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
import * as math from "./mathTools";
|
||||
let n1 = parseInt(prompt("请输入第一个数值"))
|
||||
let n2 = parseInt(prompt("请输入第二个数值"))
|
||||
console.log("这是两数相加的结果:"+math.jia(n1, n2));
|
||||
console.log("这是两数相减的结果:" +math.jian(n1,n2))
|
||||
console.log("这是两数相乘的结果"+math.cheng(n1, n2));
|
||||
console.log("这是两数相除的结果"+math.chu(n1, n2));
|
|
@ -0,0 +1,22 @@
|
|||
let t
|
||||
function jia(n1,n2){
|
||||
return n1*1+n2*1
|
||||
}
|
||||
function jian(n1,n2){
|
||||
if (n1 < n2) {
|
||||
t = n2; n2 = n1, n1 = t
|
||||
}
|
||||
return n1-n2
|
||||
}
|
||||
function cheng(n1,n2){
|
||||
return n1*n2
|
||||
}
|
||||
function chu(n1,n2){
|
||||
if (n1 < n2) {
|
||||
t = n2; n2 = n1, n1 = t
|
||||
}
|
||||
return n1/n2
|
||||
}
|
||||
export{
|
||||
jia,jian,cheng,chu
|
||||
}
|
|
@ -3,6 +3,6 @@ module.exports={
|
|||
entry:"./src/index.js",
|
||||
output:{
|
||||
path: path.resolve(__dirname,"dist"),
|
||||
filename:"result.js"
|
||||
filename:"finall_Result.js"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue