Html/CSS
checkbox 标签描述

1、functionchecked(){ varisChecked=false; $("input[@type=checkbox]").each( function(){ if($(this).attr("checked")){ isChecked=true; return;} }) if(!isChecked){ alert("请至少选择一条记录进行操作!"); } returnisChecked; } 2、funcionchecked2{ varisChecked=$("id").attr('checked')//用于判断某id的属性checked是否选中(只能判 //断一个check...

最终效果: 特点描述: 1.弹窗圆角 2.列表多选 3.ratingbar可拖动 一。带圆角的alertDialogalertDialog的使用有三种:一种是自定义Dialog继承AlertDialog;一种是在使用的地方直接创建AlertDialog;一种是用工厂方法,创建自己的Dialog类,然后在构造方法内创建AlertDialog第一种:继承的方式 publicclassBottomDialogextendsDialogimplementsView.OnClickListener{ } 重写onCreate方法 @Override protectedvoidonC...

实现类似菜单点菜。 textView可拖动,多选实时选择。 1、界面设计 <?xmlversion="1.0"encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" andr...