1. javascript的typeof返回哪些數(shù)據(jù)類(lèi)型. 答案:string,boolean,number,undefined,function,object 2. 例舉3...
微信公眾號(hào)h5獲取用戶openId的方法和步驟 微信h5靜默、非靜默授權(quán)獲取用戶openId的方法和步驟: 一、openId是什么? openId是用戶在當(dāng)前公眾號(hào)下的唯一標(biāo)...
function getUrlParam(name) {//a標(biāo)簽跳轉(zhuǎn)獲取參數(shù) var reg =new RegExp("(^|&)" + name +"=([^&]*)...
js: $("#area").on("input propertychange", function () { var $this =$(this), _val = ...
var winWidth = document.documentElement.offsetWidth || document.body.offsetWidth win...
知識(shí)要點(diǎn): $("#dh").offset().top;//元素相對(duì)于窗口的距離 $(window).scrollTop(); //監(jiān)控窗口已滾動(dòng)的距離; $(documen...
1.vue中全局注冊(cè)組件:https://blog.csdn.net/qq_34089503/article/details/81329405 2.vue中全局定義變量:ht...
表單上傳: 要點(diǎn): method="post": 采用post方式提交數(shù)據(jù) enctype="multipart/form- data":采用multipart格...
新建一個(gè)js文件: $.fn.serializeJson = function() { var arr = this.serializeArray(); var json...
css: .bigPic { width: 400px; height: 300px; border: 1px solid #ccc; border-radius: 4px;...
var app = getApp() Component({ /** * 組件的屬性列表 */ properties: { title: { type:...
1.碼云上新建項(xiàng)目; 2.git init(初始化倉(cāng)庫(kù)); 3.git remote add originhttps://gitee.com/smm991230/learn_...
在哪里發(fā)送驗(yàn)證什么時(shí)候調(diào)取該方法: countDown: function () { let that = this; let countDownNum = 61;/...
1.安裝lib-flexible.js; 2.安裝px2rem-loader; 3.在項(xiàng)目入口文件main.js中引入lib-flexible;(import 'lib-fl...
1.安裝axios(npm install axios); 2.在src目錄下新建一個(gè)request文件夾; 3.在request下新建兩個(gè)文件: api.js(用來(lái)統(tǒng)一數(shù)據(jù)...
vue webpack 配置 vue腳手架(以下命令均在cdm里操作,步驟具體如下) 1)cnpm i vue-cli -g (安裝vue所需配置) 2)cd 路徑 回車(chē) (...