自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (1)
  • 问答 (7)
  • 收藏
  • 关注

原创 微信小程序使用 wx:for 循环渲染 slideview 无法获取 index 的问题解决办法

Slideview | 微信开放文档使用 wx:for 循环渲染 slideview<mp-slideview wx:for="{{slideviewList}}" wx:key="id" buttons="{{slideButtons}}" bindbuttontap="slideButtonTap"> <view>...</view>&l...

2020-02-12 17:33:44 1785 2

原创 微信小程序 innerAudioContext 触发 onEnded 方法后 onTimeUpdate 不再触发的解决办法

微信开放社区里有这样一个问题https://developers.weixin.qq.com/community/develop/doc/00068a72a2c588d3c6c8edeac56800一段音频播放结束之后,再次播放,发现 onTimeUpdate 方法不会触发。最近写小程序遇到这样的问题。发现和 innerAudioContext.paused 这个变量有关。这个变量在 on...

2020-01-10 17:48:15 2990

原创 微信小程序开通腾讯云开发环境

目录微信小程序开通“腾讯云”开发环境注册腾讯云账号配置开发环境微信小程序开通“腾讯云”开发环境这里强调以下,标题是“腾讯云”开发环境,而不是腾讯“云开发”环境。这两个概念不仅在语义上容易混淆,在开发者工具的图标也容易混淆。先来感受以下:注册腾讯云账号腾讯云官网既然我们开发小程序已经在微信公众平台上注册过账号了,那么就直接用微信公众平台账号登陆吧配置开发环境在腾讯云网站顶栏的“云产...

2019-04-15 21:24:13 3412 5

原创 关于 flex-grow 和 flex-shrink 的计算

关于 flex-grow 和 flex-shrink 的计算Flex-Grow容器1 固定宽度为 500px . 子元素 A, B, C 和 F 的 flex-grow 属性为 1 . 子元素 D 和 E 的 flex-grow 的属性为 2 .<div id="container1"> <div class="box1" style="backgro...

2019-04-14 20:11:23 628

翻译 Sum of Two Integers

LeetCode No.371Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3.这道题目一拿到便想到用位运算,因为加法在计算机上的本质也就是位运算。但是

2016-07-12 16:49:58 230

原创 Intersection of Two Linked List

Write aprogram to find the node at which the intersection of two singly linked listsbegins. Forexample, the following two linked lists:A:          a1→ a2                              ↘    

2016-02-27 19:00:35 180

原创 Minimum Depth of Binary Tree

Given abinary tree, find its minimum depth. The minimumdepth is the number of nodes along the shortest path from the root node down tothe nearest leaf node. 想来也简单。以先序遍历算法为例,设置一个最小深度变量,在每个叶子节点判

2016-02-26 16:38:11 188

原创 Implement Stack using Queues

Implementthe following operations of a stack using queues. push(x) --Push element x onto stack.pop() --Removes the element on top of the stack.top() --Get the top element.empty() --Return wh

2016-02-26 11:34:41 193

原创 Palindrome Number

Determinewhether an integer is a palindrome(回文). Do this without extra space. Some hints:Couldnegative integers be palindromes? (ie, -1)If you arethinking of converting the integer to string,

2016-02-22 12:31:26 267

原创 Plus One

LeetCodeNo.66 Given anon-negative number represented as an array of digits, plus one to the number.The digitsare stored such that the most significant digit is at the head of the list.用字符串

2016-02-21 21:06:08 177

原创 Remove Duplicates from Sorted Array

LeetCode No.26Given asorted array, remove the duplicates in place such that each element appear onlyonce and return the new length.Do notallocate extra space for another array, you must do this in

2016-02-21 20:55:21 167

转载 在Windows visual studio环境下编译Lua

最近才开始接触Lua,发现很对教学视频还有资料都是基于Lunix。找了好久才找到可行的编译lua的方法准备阶段:在lua.org上下载最新的luaWindows上安装visual studio实践过程1、打开VS,new->project->other project types->blank solution->name: Lua_build->OK2

2015-12-31 14:25:03 2484

cocos2d-x cookbook

网上能找到的cocos2d的书籍不多,下到了免费分享给大家。我自己还没有看

2016-01-12

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

TA关注的人

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