
跨平台开发
app,小城跨平台开发
晓果博客
You’ll never realize how strong you are until you have no other choice but to be strong<br>你永远都不会知道自己到底有多坚强,直到有一天你除了坚强别无选择。
展开
-
uni-app:第三章 模版使用
创建模版创建components文件夹,在其创建模版<template> <view> <text>我是test组建{{msg}}</text> <button type="primary" @click="test">event</button> </view></template><script> export default { data() { retu.原创 2020-06-10 10:19:43 · 540 阅读 · 0 评论 -
uni-app:第六章 ajax使用
在上一节基础上封装网络请求const BASE_URL = "https://api.douban.com/v2/movie"/** * 方法调用 */export const getInTheaters = params => ( new Promise((resolve, reject) => { uni.request({ url: `${BASE_URL}/in_theaters`, data: params, header: { "co原创 2020-06-10 10:20:35 · 5688 阅读 · 0 评论 -
uni-app:第五章 vuex使用 &ajax配置
创建storeimport Vue from 'vue'import Vuex from 'vuex'Vue.use(Vuex);export default new Vuex.Store({ state: { city: "北京市", nowPlayingList:[] }, //操作变量的方法 mutations: { }, //异步 actions: { },})将store引入main.jsimport Vue from 'vu.原创 2020-06-10 10:20:14 · 635 阅读 · 0 评论 -
uni-app:第四章 网络接口和其他
<template> <view> <view v-show="false">v-show</view> <view v-if="true">v-if</view> <view>xxx</view> <button type="primary" @click="toPath">路由跳转</button> <view> <view>Vuex原创 2020-06-10 10:20:03 · 363 阅读 · 0 评论 -
uni-app:第二章 基本指令学习
<template> <view class="content"> <!-- 1. -》》》》》》基本指令学习 --> <text>我是主页</text> {{"HUANG"}} <view>{{msg}}</view> <view>{{msg+"-HUANG"}}</view> <!-- 运算符在原生小程序无法使用的,uni可以贴近前端 -->原创 2020-06-10 10:19:22 · 732 阅读 · 0 评论 -
uni-app:第一章 pages配置
{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", "style": { "navigationBarTitleText": "首页" } }, { "path": "pages/news/news", "style": { "navigationBarTitleText": "新原创 2020-06-10 10:19:07 · 2352 阅读 · 0 评论 -
uni-app 商城选择商品左右菜单联动效果实现
<template> <view> <view class="ld"> <view class="left"> <scroll-view :scroll-y="true" :scroll-with-animation="true" :scroll-into-view="clickToId" :style="{'height':windowHeight}"> <view v-.原创 2020-05-18 00:27:31 · 5996 阅读 · 4 评论