随笔分类 - 代码库
摘要:window.location.href="showmod3.aspx?nodeId=00040003&M1=5&M2=0";
阅读全文
摘要:var str=window.location.href;var es=/nodeId=/;es.exec(str);var para=RegExp.rightContext;
阅读全文
摘要:文本包含内容:$(".subclassText:contains('文字内容')")属性中包含内容:$("#JunLeft a[href$='00040008']")
阅读全文
摘要:import java.io.IOException;import android.content.Context; /* 写文件的代码 */ try { FileOutputStream outStream =main.this.openFileOutput("itcast.txt", Context.MODE_PRIVATE); outStream.write("文件写入".getBytes()); outStream.close(); } catch (FileNotFoundException e) { e.printStackTrace();
阅读全文
摘要:import android.app.AlertDialog;import android.content.DialogInterface; new AlertDialog.Builder (this) .setTitle ("Alerting Message") .setMessage ("你好!") .setPositiveButton("确定",new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog,
阅读全文
摘要:Bundle bunde = this.getIntent().getExtras();double height = Double.parseDouble(bunde.getString("KEY_HEIGHT"))/100;double weight = Double.parseDouble(bunde.getString("KEY_WEIGHT"));
阅读全文
摘要:Uri uri = Uri.parse("http://androidbmi.googlecode.com/");Intent intent = new Intent(Intent.ACTION_VIEW, uri);startActivity(intent);
阅读全文
摘要:发送intent.setClass(Bmi.this, Report.class);Bundle bundle = new Bundle();bundle.putString("KEY_HEIGHT", field_height.getText().toString());bundle.putString("KEY_WEIGHT", field_weight.getText().toString());intent.putExtras(bundle);startActivity(intent);接收解析Bundle bunde = this.getInt
阅读全文
摘要:Uri uri = Uri.parse(getString(R.string.homepage_uri));
阅读全文
摘要:保存偏好 @Override protected void onPause(){ super.onPause(); // Save user preferences. use Editor object to make changes. SharedPreferences settings = getSharedPreferences(PREF, 0); settings.edit() .putString(PREF_HEIGHT, field_height.getText().toString()) .commit(); }获取偏好 // Restore preferences privat
阅读全文
摘要:.pager{font-size:12px;line-height:16px;text-align:center;}.pager a{display:inline-block;background-color:#FFFFFF;padding:0px;margin:0px 0px 1px 1px;}.pager a:link,a:visited{ text-decoration:none;font-size:12px; width:40px; height:16px;padding:2px 0 0 0;border:1px #CCCCCC dotted;}.pager a:hover{text-
阅读全文
摘要:a:link,a:visited{font-size:14px;line-height:20px;text-decoration:none;color:blue;}a:hover{color:red;}
阅读全文
摘要:#series{width:580px;font-size:14px;margin:0 0 0 10px;}#series td{border-bottom:1px dotted gray;height:24px;}#series .col2{width:80px;}后台代码:strSeriesList = Formater.LinkedTable(dt2, "f_id", "series", "|f_id|", "f_title= ;f_date= ;", "f_title", ".
阅读全文
摘要:table#tbl{ border-collapse:collapse;border:2px solid #6699cc;}#tbl th {border: 1px solid #6699cc; }#tbl td {border: 1px solid #6699cc; }#tbl{ font-size:14px; width:910px;}上面三行控制表格线,下面控制特定的属性。
阅读全文
摘要:界面的确差点,但功能够了:能够加载表格中的日期,这点倒很实用。 在aspx页面中可以这样用: <style type="text/css">@import "j/date/jquery.datepick.css";</style> <script type="text/javascript" src="j/date/jquery.datepick.js">&l...
阅读全文
摘要://表格的属性$("#tbl").attr("cellSpacing","1").attr("cellPadding","0");$("#tbl").attr("bgColor","#6699cc").attr("colSpan","2"); $("#tbl").css({"font-size":"13px","line-height":"28px","width":"600px","margi...
阅读全文
摘要://表格的属性$("#tbl").attr("border","1").attr("cellSpacing","0").attr("cellPadding","0").attr("borderColorDark","#ffffff").attr("borderColorLight","#909090");$("#tbl").attr("bgColor","#d4e1e5").attr("colSp...
阅读全文
摘要:把四个角的图片截下来,用css定位到四个角上,表格的底色设置为一样的即可。 $("#tbl").css({"border-collapse":"collapse",width:"800px",position:"absolute",top:"60px",left:"120px",width:"800px",height:"20px"});$("#tbl td").css({"font-size"...
阅读全文