- 博客(12)
- 收藏
- 关注
原创 react 使用高德地图ip定位获取所在城市
import React from 'react';import { Icon, Button, Row, Col } from 'antd';import styles from './style.less';const ColProps = { xs: 6, sm: 6,}export default class citys extends React.Component
2018-02-06 20:58:35
3767
1
原创 react 下拉滚动功能
constructor(props) { super(props); this.state = { data: [], loading: false, hasMore: true, height:2000 }}onScrollHandle(event) { const clientHeight = event.target.documentEl
2018-01-16 16:30:10
1310
原创 dva + antd 初次使用
第一次使用dav+antd 将步骤记录下来第一步:安装 dva-cli#通过 npm 安装 dva-cli 并确保版本是 0.8.1 或以上。$ npm install dva-cli -g$ dva -v0.8.1第二步:创建新应用安装完 dva-cli 之后,就可以在命令行里访问到 dva 命令。$ dva new dva-quickstart然
2017-10-16 14:06:47
2433
原创 java中带变量的json格式数据用string拼接示例
String json = "{" + "\"component_appid\":" + "\"" + componentConfig.getAppid() + "\"," + "\"component_appsecret\":" + "\"" + componentConfig.getAppsecret() + "\"," + "\"component_verify_ticket\":"
2017-08-25 18:05:05
3340
原创 微信文章分享自定义标题,简介和浓缩图
$(function(){ wx.config({ debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: '', // 必填,公众号的唯一标识 timestamp: '', // 必填,生成签名的时间戳
2017-08-18 14:48:40
681
1
转载 微信内置的浏览器中window.location.href 跳转失败问题
在移动wap中,经常会使用window.location.href去跳转页面,这个方法在绝大多数浏览器中都不会 存在问题,在做项目时遇到问题:在安卓手机的微信自带浏览器中,这个是失效的,并没有跳转;原来的代码:window.location.href="SignView.jsp?sceneId="+$('#sceneId').val();这段代码在安卓手机的微信自带
2017-08-16 11:36:07
4888
原创 EditText点击事件:弹出时间框
EditText starttime=(EditText)view.findViewById(R.id.livebegintime);starttime.setInputType(InputType.TYPE_NULL);starttime.setOnClickListener(new OnClickListener() { //弹出日期时间控件 @Override pub
2017-07-11 18:49:08
589
原创 EditText点击事件:弹出单选框
EditText claszId =(EditText)view.findViewById(R.id.claszId);claszId.setInputType(InputType.TYPE_NULL);claszId.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0)
2017-07-11 18:45:35
789
原创 android界面:上下固定且中间内容滚动的页面制作
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/common_bg" an
2017-07-10 16:30:27
1694
转载 win10 安装搜狗输入法却无法正常使用解决方法
1、右键开始菜单图标,点击计算机管理2、选择任务计划程序3、找到Windows目录下的TextServicesFramework文件4、找到并选中右边窗口中的MsCtfMonitor选项5、右键该选项,并点击运行6、当此处显示正在运行任务时,表示运行成功7、保存后关闭窗口,就可以正常切换使用输入法了
2017-07-06 11:33:34
31971
转载 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决
Linux环境解决Mysql权限不足以下方法亲测好使,鉴于版本的多样性,如果解决不了,请百度, Linux 环境相关的解决 Mysql 权限不足还是很多文章的。方法操作很简单,如下:# /etc/init.d/MySQL stop# mysqld_safe --user=mysql --skip-grant-tables --skip-networkin
2017-06-29 14:04:12
461
转载 android中的EditText怎么屏蔽软键盘以及在屏蔽软键盘弹出其它对像
final EditText begintime=(EditText)view.findViewById(R.id.livebegintime);begintime.setInputType(InputType.TYPE_NULL);begintime.setOnClickListener(new OnClickListener() {}转自:http://www.reader
2017-06-22 16:06:12
505
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人