small-swiper
Version:
swiper js javascript vue react angular
47 lines (43 loc) • 1.01 kB
HTML
<html>
<head>
<meta charset="UTF-8">
<title>我是首页</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
</head>
<body>
<div id="app"></div>
</body>
</html>
<script>
Function.prototype.uncurry = function() {
const that = this
return function() {
return Function.prototype.call.apply(that, arguments)
}
}
function say() {
return 'Hello' + ' ' + this.value + ',' + [].slice.call(arguments)
}
const sayUncurry = say.uncurry()
const valueString = sayUncurry({
value: 'word'
}, 'hehe', 'haha')
console.log(valueString)
</script>
<script>
function call(){
const arr = [...arguments]
const target = arr.shift()
ceshi.apply(target,arr)
}
function he() {
console.log(13)
}
function ha() {
console.log(this, arguments)
return Function.prototype.call.apply(this,arguments)
}
ha.call(he,'123')
</script>