先来看一段代码,就是一小段而已: export function loginWithWx() { wx.showLoading({ title: "登录中..." }); wx.login({ success: res => { wx.request({ url: `${apiRoot}wx/${r ...
分类:
编程语言 时间:
2021-01-04 11:11:14
阅读次数:
0
文档 是这样的 function useQuery() { return new URLSearchParams(useLocation().search); } 使用 function demo (){ const history = useHistory(); history.get('name ...
分类:
其他好文 时间:
2021-01-04 10:59:19
阅读次数:
0
javascript:(function() { function R(a){ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; ...
分类:
Web程序 时间:
2021-01-04 10:40:43
阅读次数:
0
1 // 抓取,添加数据 2 public function save(){ 3 require 'QueryList/phpQuery.php'; 4 require 'QueryList/QueryList.php'; 5 // 要抓的网址 6 $url = 'http://www.techwe ...
分类:
其他好文 时间:
2021-01-04 10:33:29
阅读次数:
0
在created钩子的时候处理 created(){ var enterEvent = this document.onkeydowm = function(e){ var key = window.event.keyCode if(key 13){ enterEvent.handle() } } ...
分类:
其他好文 时间:
2021-01-02 11:30:16
阅读次数:
0
S指structure 结构 微信朋友圈结构是由客户端和服务端组成,所以测试就可以从ui前端测试和接口后端测试去考虑。 F指function 功能 这个很简单,就是考虑测试发朋友圈的功能,不赘述。 D指data 数据 不仅微信,任何一款软件无非就是界面加数据组成,所以要考虑不同页面以及不同系统数据是 ...
分类:
其他好文 时间:
2021-01-02 11:28:59
阅读次数:
0
function gakmeans?clc;close all; clear all;?% sds - sampled dataset global sds;?[im,map]=imread('ant.jpg');if ( size(im,3)==3) im=rgb2gray(im);end?im= ...
分类:
编程语言 时间:
2021-01-02 11:11:33
阅读次数:
0
yyyy-mm-dd formatDate: function (date) { function addDateZero(num) { return (num < 10 ? "0" + num : num); } var d = new Date(date); var formatdatetime ...
分类:
Web程序 时间:
2021-01-01 12:46:23
阅读次数:
0
# f 参数是两个,multiprocessing.pool.map框架只能传一个的时候 from multiprocessing import Pool import time # 1 这个方法不行,但是装饰器思路好 # def my_function_helper(func): # def in ...
分类:
其他好文 时间:
2021-01-01 12:42:07
阅读次数:
0
Vue基础模板 var vm=new Vue({ el:"#app", data:{ 属性名:属性值, ... }, methods: { 函数名: function () {...}, ... } }) 根组件 new Vue() 全局组件 Vue.component("组件名",{ templa ...
分类:
其他好文 时间:
2021-01-01 12:37:25
阅读次数:
0