- 博客(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
1897
2
原创 微信小程序 innerAudioContext 触发 onEnded 方法后 onTimeUpdate 不再触发的解决办法
微信开放社区里有这样一个问题https://developers.weixin.qq.com/community/develop/doc/00068a72a2c588d3c6c8edeac56800一段音频播放结束之后,再次播放,发现 onTimeUpdate 方法不会触发。最近写小程序遇到这样的问题。发现和 innerAudioContext.paused 这个变量有关。这个变量在 on...
2020-01-10 17:48:15
3252
原创 微信小程序开通腾讯云开发环境
目录微信小程序开通“腾讯云”开发环境注册腾讯云账号配置开发环境微信小程序开通“腾讯云”开发环境这里强调以下,标题是“腾讯云”开发环境,而不是腾讯“云开发”环境。这两个概念不仅在语义上容易混淆,在开发者工具的图标也容易混淆。先来感受以下:注册腾讯云账号腾讯云官网既然我们开发小程序已经在微信公众平台上注册过账号了,那么就直接用微信公众平台账号登陆吧配置开发环境在腾讯云网站顶栏的“云产...
2019-04-15 21:24:13
3582
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
676
翻译 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
270
原创 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
208
原创 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
215
原创 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
222
原创 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
303
原创 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
217
原创 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
198
转载 在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
2591
Android Studio GPU Monitor
2016-11-24
centos 搭建websocket++环境
2016-08-20
Windows过滤驱动与控制台程序交互
2016-05-18
过滤驱动禁止U盘读写(非注册表)
2016-05-17
scsi.h 类型包含大小不确定的数组
2016-05-15
选中的inf文件不支持此安装方式
2016-05-13
Windows过滤驱动开发,求指导或者资料推荐
2016-05-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人