<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[不负卿的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/fangdong_1985</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; fangdong_1985]]></copyright><item><title><![CDATA[微信小程序获取随机数]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/115789964</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/115789964</guid><author>fangdong_1985</author><pubDate>Sat, 17 Apr 2021 10:32:30 +0800</pubDate><description><![CDATA[微信小程序获取随机数


Math.ceil(Math.random()*35)

Math.ceil() //抛弃小数位，取整

Math.random()*35 //获取1-35之间的数
]]></description><category></category></item><item><title><![CDATA[struts2中文乱码解决方法]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/105123963</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/105123963</guid><author>fangdong_1985</author><pubDate>Thu, 26 Mar 2020 17:42:55 +0800</pubDate><description><![CDATA[中文乱码问题基本是统一编码格式的问题 ,检查以下三个地方，基本可以解决。
1.统一页面编码
所有JSP页中添加代码
&lt;%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%&gt;


2.设置struts.xml配置文件中的struts.i18n.encoding参数
&lt;...]]></description><category></category></item><item><title><![CDATA[Struts2获取表单数据方法]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/105123688</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/105123688</guid><author>fangdong_1985</author><pubDate>Thu, 26 Mar 2020 17:35:39 +0800</pubDate><description><![CDATA[1、建立表单页reg.jsp
 
&lt;%@ page language="java" pageEncoding="UTF-8"
    contentType="text/html; charset=UTF-8"%&gt;
    
    
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://ww...]]></description><category></category></item><item><title><![CDATA[访问action类的三种方法]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/105026710</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/105026710</guid><author>fangdong_1985</author><pubDate>Sun, 22 Mar 2020 13:36:19 +0800</pubDate><description><![CDATA[第一种 使用action标签的method属性，在这个属性里面写执行的action的方法
1 创建action，创建多个方法

2 使用method配置
缺陷：action每个方法都需要配置，如果action里面有多个方法，配置很多的action
第二种 使用通配符方式实现（重点）
在action标签里面name属性，name属性值里面写 符号 *  星号

理解： 表示匹配任意内容


比如访问...]]></description><category></category></item><item><title><![CDATA[Action类的编写方式]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/105026614</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/105026614</guid><author>fangdong_1985</author><pubDate>Sun, 22 Mar 2020 13:27:12 +0800</pubDate><description><![CDATA[action编写有三种方式
第一种 创建普通类，这个不继承任何类，不实现任何接口

第二种 创建类，实现接口 Action


第三种 创建类，继承类 ActionSupport（一般使用）


...]]></description><category></category></item><item><title><![CDATA[struts.xml内签 package标签、action标签、result标签详解]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/105010259</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/105010259</guid><author>fangdong_1985</author><pubDate>Sat, 21 Mar 2020 15:11:50 +0800</pubDate><description><![CDATA[标签package
1 类似于代码包，区别不同的action，要配置action，必须首先写package标签，在package里面才能 配置action
2 package标签属性
（1）name属性

name属性值根功能本身没有关系的，
在一个配置文件中可以写多个package标签，name属性值不能相同的

（2）extends属性


属性值固定的，struts-default
写了这个...]]></description><category></category></item><item><title><![CDATA[第一个struts2示例]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/105010186</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/105010186</guid><author>fangdong_1985</author><pubDate>Sat, 21 Mar 2020 15:04:29 +0800</pubDate><description><![CDATA[第一步、导入jar包
（1）在示例文件的APPS内的lib中有jar包，不能把这些jar都导入到项目中
（2）到apps目录里面，找到示例程序，从示例程序复制jar包

第二步 创建action的类

第三步 配置action类访问路径
（1）创建struts2核心配置文件

核心配置文件名称和位置是固定的
位置必须在src下面，名称 struts.xml

（2）引入dtd约束

（3）acti...]]></description><category></category></item><item><title><![CDATA[Java编写MD5加密函数]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/102561425</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/102561425</guid><author>fangdong_1985</author><pubDate>Tue, 15 Oct 2019 09:55:19 +0800</pubDate><description><![CDATA[public String MD5(String s) {
	try {
		byte[] btInput = s.getBytes();
		MessageDigest mdInst = MessageDigest.getInstance("MD5");
		mdInst.update(btInput);
		byte[] md = mdInst.digest();
		StringBuffer...]]></description><category></category></item><item><title><![CDATA[安卓踩坑日记：ListView中的EditText的值无法获取并保存]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/102561286</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/102561286</guid><author>fangdong_1985</author><pubDate>Tue, 15 Oct 2019 09:52:48 +0800</pubDate><description><![CDATA[项目需要，在ListView中动态增加EditText。
但是发现 EditText的值获取不到，用EditText.getText()方法是没有办法实现保存的。
查了一堆资料，终于解决了。
解决方案：
第一步，不用自带的适配器，要重写自己的适配器并继承BaseAdapter
如：class MyAdapter extends BaseAdapter
第二步，重写父类中的方法public View...]]></description><category></category></item><item><title><![CDATA[安卓踩坑日记：ListView自动滚动，到最后新加入的Item上]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/102461078</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/102461078</guid><author>fangdong_1985</author><pubDate>Wed, 09 Oct 2019 15:01:28 +0800</pubDate><description><![CDATA[开发过程中需在listview中不断加入新item，并且希望总是显示最后添加的那个项，试过获取焦点，但比较麻烦
解决办法：
在布局文件listview中添加属性：
android:transcriptMode="alwaysScroll"


...]]></description><category></category></item><item><title><![CDATA[安卓踩坑日记：SimpleAdapter的Item不能点击]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/102455037</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/102455037</guid><author>fangdong_1985</author><pubDate>Wed, 09 Oct 2019 10:15:56 +0800</pubDate><description><![CDATA[用SimpleAdapte实现多类控件混排，但是问题出现了，onItemClick单击没反应。
解决方法：
在ListView布局xml中增加新属性
android:descendantFocusability="blocksDescendants"

完美解决

...]]></description><category></category></item><item><title><![CDATA[安卓踩坑日记：Handler消息类型]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/101643500</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/101643500</guid><author>fangdong_1985</author><pubDate>Sat, 28 Sep 2019 22:32:46 +0800</pubDate><description><![CDATA[package com.example.handle_test;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.Button;
i...]]></description><category></category></item><item><title><![CDATA[今天起，好好学习！]]></title><link>https://blog.youkuaiyun.com/fangdong_1985/article/details/101643217</link><guid>https://blog.youkuaiyun.com/fangdong_1985/article/details/101643217</guid><author>fangdong_1985</author><pubDate>Sat, 28 Sep 2019 22:25:54 +0800</pubDate><description><![CDATA[这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题，有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能，丰富你的文章UML 图表FLowchart流程图导出与导入导出导入
欢迎使用Ma...]]></description><category></category></item></channel></rss>