一.判断是否为数组类型
var a=[0];
document.write(isArray(a),'<br/>');
function isArray(obj){
return (typeof obj=='object')...
yekong
3年前 (2022-01-04)
喜欢
js ajax jsonp 访问接口避免跨域
$.ajax({
url: '',
type: 'GET',
dataType: 'jsonp', //指定服务器返回的数据...
yekong
3年前 (2022-01-04)
喜欢
运行实例
代码
<template>
<div class="echarts1" ref="echarts">
</div>
</template>
<script>...
yekong
3年前 (2022-01-04)
喜欢
运行实例
代码
<template>
<div class="echarts1" ref="echarts">
</div>
</template>
<script>...
yekong
3年前 (2022-01-03)
喜欢
运行实例
代码
<template>
<div class="echarts1" ref="echarts">
</div>
</template>
<script>...
yekong
3年前 (2022-01-03)
喜欢
<template>
<div>
<el-button class="button" type="primary" @click="getshow" size="min...
yekong
3年前 (2022-01-03)
喜欢
微信小程序使用uniapp 开发时,需要获取用户信息用于注册
<button type="default" @click="getinfo">获取用户信息</button>
getinfo() {
...
yekong
3年前 (2022-01-03)
喜欢
微信小程序使用uniapp 开发时,需要使用用到微信登录获取code
login() {
var that = this;
uni.login({
provider: '...
yekong
3年前 (2022-01-03)
喜欢
<button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">获取用户手机号</button>
<script>
exp...
yekong
3年前 (2022-01-03)
喜欢
// 此vm参数为页面的实例,可以通过它引用vuex中的变量
import configs from './config.js'
module.exports = (vm) => {
// 初始化请求配置
uni.$u.http.setConfig((config) =...
yekong
3年前 (2022-01-03)
喜欢