• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






张%sir

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2018年7月15日

Yii框架
摘要: 安装: 配置cookievalidationkey,为了防止cookie攻击,随便配置一个值 'cookieValidationKey' => 'aaa', 命名空间: 没有命名空间namespace的类是全局类,重命名相同类用as 访问全局类 访问 控制层以controller结尾,方法以acti 阅读全文
posted @ 2018-07-15 10:41 张%sir 阅读(200) 评论(0) 推荐(0)
 
vue引用文件
摘要: 1)css引入在vue页面中<style scoped> @import url("../assets/css/home.css");</style>2)js引入js文件home.jsvar listobj={ getdata:function(_this){ _this.$router.push( 阅读全文
posted @ 2018-07-15 10:23 张%sir 阅读(194) 评论(0) 推荐(0)
 
vue vuex
摘要: 安装:npm install --save vuex在mian.js中import Vuex from 'vuex';Vue.use(Vuex);import store from './store/index';在new Vue({ })中加入 store:store, //注入到vue 在src 阅读全文
posted @ 2018-07-15 10:23 张%sir 阅读(112) 评论(0) 推荐(0)
 
vue-resource
摘要: 安装npm install vue-resource引入import VueResource from 'vue-resource';Vue.use(VueResource);使用get方法this.$http.get("http://localhost/test.php").then( funct 阅读全文
posted @ 2018-07-15 10:22 张%sir 阅读(87) 评论(0) 推荐(0)
 
vue axios
摘要: 安装:npm install axios引用:在mian.js中import axios from 'axios';axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';Vue.protot 阅读全文
posted @ 2018-07-15 10:21 张%sir 阅读(83) 评论(0) 推荐(0)
 
vue-wechat-title
摘要: html中的title安装:npm install vue-wechat-title --save1.在mian.js中//网页titleimport VueTitle from 'vue-wechat-title' Vue.use(VueTitle);2. 路由中加下 title { path: 阅读全文
posted @ 2018-07-15 10:19 张%sir 阅读(727) 评论(0) 推荐(0)
 
vue安装
摘要: 1)安装node.js环境:node.js从node.js官网下载并安装node,安装过程很简单,一直点下一步就ok了验证是否安装成功:node -v npm -v --安装cnpm 在命令行中输入 npm install -g cnpm --registry=http://registry.npm 阅读全文
posted @ 2018-07-15 10:14 张%sir 阅读(103) 评论(0) 推荐(0)