自定义博客皮肤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)
  • 收藏
  • 关注

原创 app webrtc Failed to send STUN ping err=-1 Received STUN request with bad M-I from

ios 和安卓 这两个问题产生的原因就是本地生成answer SDP的时候产生的ice-pwd中含有'+'这个符号和'/'这个符号导致的sdp密码效验失败(ios含有+才会报错)我们研究webrtc源码可以发现,它内部含有一套自己生成随机串的算法见helpers.cc中CreateRandomString是根据kBase64生成随机串的static const char...

2019-11-27 11:31:01 1298 1

原创 weex web下自定义input组件遇到的问题

由于weex自带的input组件拓展不方便,故想自己自定义一个input组件。将weex源码中input.js拷入工程import CInput from './CInput.js'CInput.init(Weex)发现:v-model无法正常使用,无论输入什么字符都会把inputevent写入input的attrs->value,效果如下:之后阅读vue-tem...

2018-11-01 22:22:13 875

原创 weex 所遇到的问题汇总

weex js在IOS上遇到的问题1. 设置opacity为0并不能透明,暂时通过设置opacity为0.1 background-color为#00000000解决2.当有animation动画时设置transform为scale(0)时会导致组件的click事件被代理到全屏,暂时通过scale(0.1),把缩小后的element隐藏来解决该问题。weex js在NATIVE上遇到的...

2018-09-12 11:56:28 816

原创 babel eslint TypeError: Cannot read property 'range' of null

暂时发现是babel-eslint 8.x.x的问题,可做降级处理->7.2.3

2018-08-21 13:39:30 11524 7

原创 vuejs router history 配置到iis

先用web平台安装程序安装url rewrite然后新建web.config在网站根目录下写如下:

2017-05-16 15:44:22 1338

原创 js prototype 和call

nb function nb(){ function dog(){ this.say=function(){ console.log("my name is "+this.name); } } function dog1(){ this.name="hqc"; } function dog2(){ this.name="lj"; }

2017-04-26 19:51:49 296

原创 JAVA读取文件夹中CSV的URL并下载图片

package com.ross.httpdownload;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java

2015-12-11 15:56:15 852

原创 关于cocos3.3移植android后清空UserDefault.xml数据的问题

需要修改源码...\cocos2d-x-3.3\cocos\base下的CCUserDefault-android.cpp第39行#define XML_FILE_NAME "UserDefault.xml"由于我们发现第511行处  _filePath += "/data/data/" + getPackageNameJNI() + "/" + XML_FILE_NAME;而coco

2015-06-14 13:49:50 1174

原创 jsp页面刷新更新数据 javascript

function onload(){   if(window.name == null || window.name == ""){       window.name = "enter";       document.location.href="tcustomerAction.action?type=list1";   }else{   }}

2015-05-11 19:24:33 1668

转载 android base64传图片

转:http://my.oschina.net/bv10000/blog/374791前端 andoid  activity用到的函数   AsyncHttpClient  是一个框架提供的库  可以异步传输,使用时需下载android-async-http-1.4.4.jar包导入到项目中[java]  view plain copy  pub

2015-05-11 10:56:50 739

原创 listview.getchildAt(i)一直为空的解决方案

new Handler().postDelayed(new Runnable() {            @Override            public void run() {            for(int i=0;i            Log.i("lalalala",String.valueOf(tripListView.getChildCount())

2014-12-18 16:44:47 995

转载 Spring整合Hibernate

Spring整合Hibernate  由于Spring和Hibernate处于不同的层次,Spring关心的是业务逻辑之间的组合关系,Spring提供了对他们的强大的管理能力, 而Hibernate完成了OR的映射,使开发人员不用再去关心SQL语句,直接与对象打交道。 将Hibernate做完映射之后的对象交给Spring来管理是再合适不过的事情了, Spring也同时提供了对Hibern

2014-11-21 14:08:43 423

原创 hibernate和sql2000连接错误

1.注意jar包![Microsoft][SQLServer   2000   Driver   for   JDBC][SQLServer]对象名   'blog.admin '   无效我hibernate.show_sql打印了一下sql语句如下select        admin0_.id as id36_,        admi

2014-11-18 17:36:58 460

原创 hdu 4947

GCD ArrayTime Limit: 11000/5500 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 856    Accepted Submission(s): 209Problem DescriptionTeacher Mai finds

2014-11-09 15:20:31 609

原创 hdu4739 状压DP+01背包入门

for(int i=0;ifor(int ss=V;ss>=0;ss--)if(ss&s[i]==s[i])dp[ss]=max(dp[ss],dp[ss^s[i]]+1);JN亲自教我的!!如果ss中有1,2,3.这三种物品,s[i]是3号物品,if这句话表示{1,2,3}含有{3}而dp[ss^s[i]]表示ss集合中去除s[i]后。

2014-01-28 21:45:57 894

原创 hdu4362

Dragon Ball Time Limit : 3000/1500ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 2   Accepted Submission(s) : 2Problem DescriptionSean has got a Treasure map w

2013-12-17 10:50:09 602

原创 zoj3618 Hash Function

Hash FunctionTime Limit: 3 Seconds      Memory Limit: 65536 KBHash table is very important in computer science. A hash function is any algorithm or subroutine that maps large data sets of vari

2013-12-15 14:24:19 917

原创 zoj 3201

Tree of TreeTime Limit: 1 Second      Memory Limit: 32768 KBYou're given a tree with weights of each node, you need to find the maximum subtree of specified size of this tree.Tree Definition

2013-12-15 14:05:28 680

原创 hdu4122 hdoj4122

Problem DescriptionThe Mid-Autumn Festival, also known as the Moon Festival or Zhongqiu Festival is a popular harvest festival celebrated by Chinese people, dating back over 3,000 years to moon wo

2013-12-03 13:10:18 677

原创 zuccoj1450

Description给你一张有向图,求出图中最长链的长度。如果图中存在环,那么我们认为链的长度是无限的。链的定义是这样:如果A点能走到B点。那么所有从A点出发走到B点的路径都被认为是以A为始端,B为终端的链。链的长度为路径上顶点的数目(包括端点)。Input多组测试数据。第一行输入n,m表示图的顶点数量与边的数量。(1接下来m行,每行输入x,y。表示x

2013-11-26 10:22:23 642

原创 Hdoj4318 hdu4318

Problem DescriptionThe project West-East power transmission is famous around the world. It transmits the electricity from western areas to east China. There are many nodes in the power system. Eac

2013-11-21 14:10:36 1038 4

ACM_算法模板集史上最完整收藏版223页全免费版.pdf

ACM_算法模板集史上最完整收藏版223页全免费版.pd

2014-04-09

空空如也

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

TA关注的人

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