自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 【微信小程序】小程序的开发环境的搭建

 为了提高开发速度,代码都是在本地码的,调试环境也在本地,因此上线时,要对一些配置文件进行修改。1.修改server/config.js首先将之前为了搭建本地开发环境,粘贴的代码注释掉,如下所示其次修改mysql配置,将pass该为小程序的appid,因为腾讯云提供的数据库默认密码为小程序appid  2. 修改src/config.js为了方便切换本地开发环境...

2018-09-01 13:14:52 2157

原创 【ESLint】解决批量解决ESLint语法检测问题

本文使用mpvue框架,代码目录结构:ESLint对代码格式的要求十分严格,为此可以在编写代码的时候先将其代码坚持关掉。只需找到项目文件下的build/webpack.base.conf.js文件,并注释掉module.rules的第一个对象。如下所示 module: { rules: [ // { // test: /\.(js|vue)$/,...

2018-08-21 15:20:29 5559

原创 【微信小程序】mpvue+koa2 框架搭建本地开发环境

  为了方便开发,在本地搭建开发环境一、搭建mpvue环境1.首先获取小程序AppIdAppId可去往微信公众平台获取,在设置一栏的开发设置下2.初始化mpvue该步骤需要实现安装过nodejs,与vue,具体安装步骤见vuejs的三个安装方法进入到项目目录后输入vue init mpvue/mpvue-quickstart然后根据提示逐步输入信息pr...

2018-08-21 09:53:36 1438 1

原创 【微信小程序】冒泡事件与非冒泡事件

比如如下代码: <view class="logview" bindtap="onTap"> <text class="logtext" bindtap="onTextTap">start</text> </view>模拟器显示如下:由于tap是冒泡事件,若点击sta

2018-08-05 17:13:09 709

原创 【微信小程序】NavigateTo与redirectTo的区别

navigateTo()导航到另一个页面,会将当前的页面隐藏起来,使页面进入hide状态,并不会关闭可以通过返回按钮回到当前的页面redirectTo()redirectTo()会使当前界面进入unload状态,即关闭该页面,将无法回到当前页面。...

2018-08-05 16:56:56 5987

翻译 【微信小程序】移动设备的分辨率与RPX

1.pt与px手机尺寸指的是手机屏幕对角线的长度。 pt也称为逻辑分辨率,pt的大小与屏幕尺寸有关,简单可以理解为长度和视觉单位。 px则指物理分辨率,1px指一个像素点,与屏幕尺寸无关。 pt由px组成,1个pt内包含的px越多,图片则越清晰。 2.如何做不同分辨率设备的自适应以iphone6的物理像素750×1334为视觉稿设计页面,而在小程序中使用rpx为单位。 iph...

2018-08-04 18:01:39 1279

原创 双栈使堆栈的min操作时间复杂度为O(1)

要求:设计一个栈的数据结构,含有min()操作来返回当前栈的最小值,要求min(),push,pop的时间复杂度均为O(1).主栈记录元素,使用一个辅助栈来记录最小值。1.入栈:只要压入的值小于辅助栈栈顶元素,则同时将其压入辅助栈。2.出栈:当主栈栈顶元素与辅助栈栈顶元素相等时,这说明最小元素出栈,所以辅助栈也随之出栈,其他情况仅对主栈操作就行3.min:直接获得辅助栈栈顶元素,即当前主栈中的最小...

2018-03-31 09:57:50 468

原创 HDU-1789 Doing Homework Again

Doing Homework againIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands

2018-02-01 18:00:22 196

原创 HDU-1272 小希的迷宫

小希的迷宫上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(除非走了回头路)。小希现在把她的设

2018-02-01 12:43:57 162

原创 ZOJ Problem Set - 1649 - Rescue

ZOJ Problem Set - 1649 -  RescueAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M Angel's friends want to save Angel. Their task is: ap

2018-01-29 20:50:29 217

原创 HDU-Ignatius and the Princess II

Ignatius and the Princess IINow our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebub has to beat

2018-01-29 19:23:05 236

原创 B. Misha and Changing Handles

B. Misha and Changing Handles Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any number of times. But each new

2018-01-29 19:09:32 270

原创 156 - Ananagrams

156 - Ananagrams    题意:由相同字母组成(忽略大小写),只是顺序不同的单词称为anagram,而题目就是要找出给定文本中不是anagram的单词。思路:

2018-01-29 18:52:53 264

原创 11995 - I Can Guess the Data Structure!

11995 - I Can Guess the Data Structure!思路:即对数据结构进行模拟,若是其中一个,则输出对应数据结构,若可能是其中的两个,则输出not sure 若都不是则输出impossible。代码:#include#include#include#include#includeusing namespace std;

2018-01-29 18:39:11 229

原创 HDU-Train Problem I

Train Problem IAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is

2018-01-29 18:31:39 282

原创 10815 - Andy's First Dictionary

Andy, 8, has a dream - he wants to produce hisvery own dictionary. This is not an easy task forhim, as the number of words that he knows is,well, not quite enough. Instead of thinking up allthe word

2018-01-29 18:17:38 350

原创 C. Replace To Make Regular Bracket Sequence

C. Replace To Make Regular Bracket Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given st

2018-01-29 17:59:55 247

原创 HDU 1073- Online Judge

Online Judge 题目描述:Ignatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read data from correct output file and user's result f

2018-01-24 15:57:00 612

原创 Circle Through Three Points

Circle Through Three PointsYour team is to write a program that, given the Cartesian coordinates of three points on a plane, will find the equation of the circle through them all. The three po

2018-01-21 20:55:02 534

原创 B Error correction

A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a 4 x 4 matrix which has the parity property: 1 0 1

2018-01-21 19:54:46 449

原创 HDU 5999 The Third Cup is Free

The Third Cup is Free题目描述:Panda and his friends were hiking in the forest. They came across a coffee bar inside a giant tree trunk. Panda decided to treat everyone a cup of coffee and have some

2018-01-21 19:32:13 295

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除