codingHeart

返回顶部

03 2017 档案

原生JS实现弹出窗口的拖拽
摘要:上一篇说了一下弹出窗口功能的实现思路,一般情况下紧接着就会需要做到弹窗的移动,当然现在有很插件、库比如hammer可以使用,效率也非常好。但我觉得还是有必要了解一下原生JS的实现思路及方式,如下: 思路:拖动这个操作起始分为三个部分: 每一步需要做的事: 1中需要将初始化的拖动标示量置为true(可 阅读全文

posted @ 2017-03-30 18:06 codingHeart 阅读(2973) 评论(1) 推荐(1) 编辑

(通用版)salesforce中soql及sosl的伪‘Like’模糊检索
摘要:salesforce里有soql、sosl两种查询语法,soql针对模糊搜索也有‘like’关键字,然而只能针对其自带字段如:Name、Id;对于自定义添加的字段如:Message__c、Note__c采用‘like’模糊检索则会报错。 然而,一般情况业务需求上更多的会对自定义字段有模糊检索的需求, 阅读全文

posted @ 2017-03-30 13:02 codingHeart 阅读(2256) 评论(3) 推荐(0) 编辑

点击后画面弹框背景变灰阴影层
摘要:实现页面功能的时候经常会遇到一个小功能需求:点击画面一个按钮,画面弹出信息页面,同时背景变暗(背景变暗其实是有个灰色半透明的全屏div遮住了原来的页面)且不可操作,信息页面操作关闭后恢复正常。 先简要理一下实(shuo)现(ren)思(hua)路: 点击事件之后要呈现半透明灰色背景挡住原页面 灰色背 阅读全文

posted @ 2017-03-28 18:11 codingHeart 阅读(2357) 评论(0) 推荐(0) 编辑

通用数据库帮助类DBHelper(含log日志信息实时记录)
摘要:项目需要,需要一个通用的数据库操作类,增删改查、事务、存储过程、日志记录都要有,于是在已有的帮助类上做了一些改进,并将log4j的.NET版--log4net嵌入其中记录sql的执行环境和状态。 用起来还是比较顺手的,因此分享一下供参考。其中log4net需要通过VS的NuGet程序包管理器引入然后 阅读全文

posted @ 2017-03-28 15:56 codingHeart 阅读(2596) 评论(7) 推荐(3) 编辑

3. Longest Substring Without Repeating Characters - 最长无重复字符子串-Medium
摘要:Examples: Description: Given a string, find the length of the longest substring without repeating characters. Example: 思路分析: 1.第一想法:从第一个字符起,逐个计算出最长字串长 阅读全文

posted @ 2017-03-13 23:57 codingHeart 阅读(302) 评论(0) 推荐(1) 编辑

27. Remove Element - 移除元素-Easy
摘要:Description: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for anothe 阅读全文

posted @ 2017-03-12 23:44 codingHeart 阅读(532) 评论(0) 推荐(0) 编辑

20. Valid Parentheses - 括号匹配验证
摘要:Description: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Example: 思路分析: 1.这 阅读全文

posted @ 2017-03-12 00:23 codingHeart 阅读(1539) 评论(0) 推荐(1) 编辑

2. Add Two Numbers
摘要:Description: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their 阅读全文

posted @ 2017-03-10 14:49 codingHeart 阅读(206) 评论(0) 推荐(0) 编辑

1. Two Sum
摘要:Description: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input 阅读全文

posted @ 2017-03-10 11:01 codingHeart 阅读(235) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示