interview-answe
interview-answe copied to clipboard
🌍 前端程序员训练 求星星 ✨ 各位同学可以在issues中提问,无论是实际项目中遇到的问题,或者是技术问题都可以, 大家一起解决💯 👍 😄。
[CSS] uni-checkbox .uni-checkbox-input { border-radius: 3upx !important; color: #ffffff !important; } uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked { color: #fff; border-color: rgb(0, 122, 255); background: rgb(0, 122, 255); } uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:after { font-size: 18px;...
[vue] https://binaryify.github.io/NeteaseCloudMusicApi/#/
 按照你的来http://www.dadaqianduan.cn/#/%E6%8E%98%E9%87%91/%E8%85%BE%E8%AE%AF%E4%BD%8D%E7%BD%AE%E6%9C%8D%E5%8A%A1%E5%BC%80%E5%8F%91%E5%BA%94%E7%94%A8?id=%e4%b8%89%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8fjavascript-sdk 我没法实现地点标记,那个图片我已放到我的路径,请问我该怎么解决 
``` 1、阴影很容易实现,内阴影+外阴影 .box-shadow1{ box-shadow: 0 1px 4px rgba(0,0,0,0.3),0 0 40px rgba(0,0,0,0.1) inset; } 2、然后使用伪类在元素的后面添加一个“可适配”的阴影,为了可适配,我们就要使用相对定位,实现代码如下 .box-shadow1{ position:relative; box-shadow: 0 1px 4px rgba(0,0,0,0.3),0 0 40px rgba(0,0,0,0.1) inset; } .box-shadow1:after{ content:""; position:absolute; background:transparent;...
[vue] ``` new Vue({ el: '#root', data: { cityName: 'shanghai' }, watch: { cityName(newName, oldName) { // ... } } }) ``` immediate和handler 这样使用watch时有一个特点,就是当值第一次绑定的时候,不会执行监听函数,只有值发生改变才会执行。如果我们需要在最初绑定值的时候也执行函数,则就需要用到immediate属性。 ``` new Vue({ el: '#root', data:...
[微信小程序] ``` /** * 微信小程序支付,仅支持微信支付(后续可能集成网页支付宝支付web-view) * * @param : provider(String) ->付款商家 * @param : timeStamp(String) ->时间戳(当前支付时间) * @param : nonceStr(String) ->支付密匙 * @param : packages(String) ->支付id * @param : signType(String)...
1.下载 html2canvas ``` npm install html2canvas ``` 2.对应页面引入该插件 ``` import html2canvas from 'html2canvas'; ``` ``` toImage() { html2canvas(this.$refs.imageDom, { backgroundColor: '#ffffff' }).then(canvas => { var imgData = canvas.toDataURL("image/jpeg"); this.fileDownload(imgData); })...