Loading...
微信小程序报错:[pages/index/index] Some selectors are not allowed in component wxss, including tag name selectors,1、翻译:[pages/index/index]组件wxss中不允许使用某些选择器,包括标记名选择器,2、解决办法:给标签加上class类名,在用类名选择器写样式原wxml:<...
项目场景:踩坑-vue3.0-uniapp-全局变量prototype失效问题描述踩坑-vue3.0-uniapp-全局变量prototype失效main.js中全局变量失效Vue.prototype.$testname = "testNAME"; 解决方案:使用export function createApp() { const app = createSSRAp...
uniapp 封装接口调用1.文件结构2.新建request.js,请求工具封装(可以新建个util目录) const baseURL = 'https://majiameng.com' const request = { get(url, data) { return new Promise((resolve, reject) => { ...
爱心代码1http://majiameng.com/love/love1.html?n=名字 复制上面的链接,把最后面的名字替换成自己名字哦!爱心代码2http://majiameng.com/love/love.html
禁止鼠标右键和禁止F12$(function(){ $(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; }); }); $(document).keydown(fun...
<script> /** 监听copy事件 */ document.addEventListener("copy",function(e){ //取消默认事件,才能修改复制的值 e.preventDefault(); //复制的内容 var copyTxt = `${window.getSelec...
//三个有序数据 var a=[2,3,4,5,6,9,10], b=[6,9,10,11,13,15], c=[2,3,4,7,9,10]; //存储合并后的数组 var d=[],len = 0; //第一步 for(var i=0,j=0,k=0;i<a.length && j<b.length && k<c.length;){ ...
angular快速开始1.安装nodejs首先要安装nodejs,如果你的电脑已经装过了,最好确认是比较新的版本,否则可能会出问题。 没有安装的直接去nodejs官网下载nodejs安装。安装过程很简单,官网有教程。下载地址://nodejs.org/en/download安装完成后,windows+R 输入cmd,打开命令输入 node -v 看看安装版本 出现版本号说明node安装成功
Hexo博客收录百度和谷歌-基于Next主题(应该是比较全面的一篇教程)我们的博客做出来当然是希望别人来访问,但是Github和Coding都做了防爬虫处理,这样子我们博客可能就无法被搜索引擎收录,需要我们手动提交!本教程基于Hexo博客框架,使用Next主题(其他主题举一反三),博主本人已绑定自己的域名(在下文会点明区别,没有太大影响);很多过程使用了Flow.ci进行自动构建!原创文章,...
1. Git安装和设置gitbrew install git #Mac电脑使用brew安装 sudo apt-get install git #Ubuntu系统使用apt-get命令安装 yum install git #Liunx系统使用yum命令安装然后设置好git账户使用Github Page搭建博客, 需要在GitHub建立仓库,仓库名为us...