Vue2 学习笔记4
文中例子代码请参考github 父组件向子组件传值 组件实例定义方式,注意:一定要使用props属性来定义父组件传递过来的数据 <script>
// 创建 Vue 实例,得到 ViewModel
var vm = new Vue({
el: '#app',
data: {
msg: '这是父组件中的消息'
},
components: {
son: {
template: '<
jQuery基础学习之ajax
ajax是jQuery实现后台与前台数据交互,与局部页面无刷新的技术
咱们照样来说下json不过是后台用的 三种较为流行的json
第一种为:FastJson 由阿里巴巴提供
第二种为:Jackson 是一种开源的
第三种为 :Gson 是有Google提供
由于gson大多用于手机端所以就不介绍了详情可以去
https://blog.csdn.net/cgh_baby/article/deta...
layui数据表格的使用
layui是国人开发的一款简单的前端框架,今天给大家带来基础使用
html代码
&lt;table class="layui-hide" id="demo" lay-filter="test"&gt;&lt;/table&gt;
&lt;!--需要提供的table表 --&gt;
&lt;!-- 工具栏 --&gt;
&lt;script type="
android-studio 安装教程
离线搭建Android Studio开发环境
前言:
Android Studio开发环境,有两种方式进行安装。
①:在线安装,需要下载大量的文件,最好电脑进行翻墙,否则下载速度相当的慢。
②:离线安装,电脑完全没有网络的情况下,需要提前下载好相对应的软件
离线安装操作步骤:
①.首先下载离线搭建Android Studio开发环境的工具,需要工具如下图所示:
caches:为安装过程和新建项目过...
解决 Configure build 下载慢的问题
在build.gradle 文件加入下面代码即可
buildscript {
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
google()
}
}
allprojects {
repositories {
...
《机器学习实战》学习笔记-第三章-决策树
机器学习实战》学习笔记-第三章-决策树
3.1.1信息增益
熵:表示随机变量的不确定性。
条件熵:在一个条件下,随机变量的不确定性。
信息增益:熵 - 条件熵
也就是说,信息增益是一定条件下信息不确定性减少的程度
信息增益到底怎么理解呢?
3.1.2划分数据集
如何有效的划分数据集:总的原则是按照能够获取最大信息增益的方法来划分数据集。
py-faster-rcnn使用注意点记录
caffe
注意点
1.git clone --recursive https://github.com/rbgirshick/py-faster-rcnn.git和直接网页下载区别,其中caffe-fast-rcnn @ 0dcd397是caffe源码
2 拷贝caffe源码里的Makefile.config.example,修改为Makefile.config,如果使用CPU计算,将CPU_...
PIL文字与图片合成
PIL文字与图片合成
#--coding:utf-8--
from PIL import Image, ImageDraw, ImageFont, ImageFilter
import os
font = ImageFont.truetype("./经典宋体简.TTF", 61)
font.getsize(“AB”)
scene_text = Image.new(‘RGBA’, (165, 165...
Invitation Cards POJ - 1511 (双向最短路)
n the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique Comedies. They h...
Einbahnstrasse HDU - 2923 (SPFA最短路双向)
Einbahnstra e (German for a one-way street) is a street on which vehicles should only move in one direction. One reason for having one-way streets is to facilitate a smoother flow of traffic through ...
Idiomatic Phrases Game ZOJ - 2750 (hush + dj/bl)
Tom is playing a game called Idiomatic Phrases Game. An idiom consists of several Chinese characters and has a certain meaning. This game will give Tom two idioms. He should build a list of idioms and...
Max Sum Plus Plus HDU - 1024(DP+m字段最大和)
Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now you are faced with a more difficult problem.
Given...
Max Sum of Max-K-sub-sequence HDU - 3415(单调)
Given a circle sequence A[1],A[2],A[3]......A[n]. Circle sequence means the left neighbour of A[1] is A[n] , and the right neighbour of A[n] is A[1].
Now your job is to calculate the max sum of a Max...
敌兵布阵 HDU - 1166 (求和线段树模板)
C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。
中央情报局要研究敌人究竟演习什么战术,所...
Just a Hook HDU - 1698 (线段树区间修改查询)
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length.
Now Pud...
A Simple Problem with Integers POJ - 3468 (线段树区间修改求和*)
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the ...
今日推荐
周排行