Time of Update: 2018-12-05
文章目錄 1、少抱怨。 2、少批評別人。 3、多溝通。 4、多做多想。 5、堅持。
Time of Update: 2018-12-05
1 // 取得本機Loopback :127.0.0.1 2 IPAddress address = IPAddress.Loopback; 3 // 建立訪問端點,連接埠:8081 4 IPEndPoint endpoint = new IPEndPoint(address,8081); 5 6 // 建立Tcp監聽器 7 TcpListener
Time of Update: 2018-12-05
文章目錄 解決辦法3 - 重新編譯 目錄提出問題分析問題解決問題 1、提出問題在自訂表格值函數中,如果有返回select * from的情況
Time of Update: 2018-12-05
我在做陳豆腐這個網站的時候,因為要學習怎麼最佳化網站,所以也學習了很多的seo知識,特此分享下1、 導航首先要保證你的網站導航都是以html為表現形式,盡量避免採用flash導航和圖片導航,不然需在網站底部添加html導航來做補救措施。導航的作用就是保證每個頁面之間都都能廣泛的互鏈,保證了蜘蛛順利的爬行網頁,另外也可以考慮建立一個網站地圖。2、 首頁網站的首頁應該盡量採用文本的形式,而不是falsh等等,首頁要包含網站重要的目標關鍵詞。這一點是不能忽略的,3、 Titletitle屬於標題標籤,
Time of Update: 2018-12-05
我們開發web項目的時候,經常遇到由於資料庫中資料不存在或者被刪除,而帶來相應的web頁面不存在/出錯的情況。那麼我們應該如何對待這種情況呢?通常情況下,類似代碼:Product pro = GetProduct(123);返回編號為123的產品資訊,如果後面不判斷pro==null直接引用pro的屬性,就會引發 NullReferenceException(為將對象引用到對象執行個體)異常,然後如果web.config中設定 <customErrors
Time of Update: 2018-12-05
拷貝以下代碼即可,僅僅是類比這種效果:index.html代碼如下:<FORM name="agree" action="reg.aspx?action=apply" method="post"> <INPUT type="submit" value= "請認真查看<服務條款和聲明>(10秒後繼續) " name="agreeb">
Time of Update: 2018-12-05
通過定時器彈出提示視窗,很多OA有這種功能 <script> function openWindow(win,winTitle,winWidth,winHeight) { var winleft=window.screen.width-winWidth-12; var winTop=window.screen.height-winHeight-75; window.open(win ,winTitle,'width='+ winWidth
Time of Update: 2018-12-05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html;
Time of Update: 2018-12-05
1、首先引入jquery-1.3.2.js ,將其放在js檔案夾下。2、為文字框的邊框定義樣式檔案 style.css ,放在css檔案夾下,其內容如下:.tbText{ /*控制邊框的是1px的實心紅色線*/ border:1px solid red; background-image:url(../images/tb_underline.gif); background-repeat:repeat-x; background-position:bottom;}3
Time of Update: 2018-12-05
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using
Time of Update: 2018-12-05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=gbk" /&
Time of Update: 2018-12-05
#import "UITestViewController.h"@implementation UITestViewController-(void)buttonDown:(id)sender{ NSLog(@"Button pushed down");}-(void)buttonRelease:(id)sender{ NSLog(@"Button released");}-(void)checkboxClick:(UIButton *)btn{ btn.selected =
Time of Update: 2018-12-05
1、普通 HSSFSheet lo_sheet = (HSSFSheet)lo_workbook.CreateSheet("sheet"); HSSFCellStyle lo_Style = (HSSFCellStyle)lo_workbook.CreateCellStyle(); lo_Style.DataFormat = HSSFDataFormat.GetBuiltinFormat("@");2、特殊 如金額 // 金額
Time of Update: 2018-12-05
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>無標題頁</title> <script> var g_blinkid = 0; var g_blinkswitch = 0; var g_blinktitle = document.title; var
Time of Update: 2018-12-05
javascript函數中執行C#代碼中的函數: 方法一:1、首先建立一個按鈕,在後台將調用或處理的內容寫入button_click中; 2、在前台寫一個js函數,內容為document.getElementById("btn1").click(); 3、在前台或後台調用js函數,激發click事件,等於訪問後台c#函數; 方法二:1、函式宣告為public 後台代碼(
Time of Update: 2018-12-05
以前覺得通知比較難搞,總是避免。但是折騰一番後發現真的是個好東西,用起來很好。整理下使用方法。一、首先,在viewDidLoad或者其他地方添加通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateTable:) name:@"updateTable"
Time of Update: 2018-12-05
Error message: Invalid length for a Base-64 char array. --------------------------------------------------------------------------------------Error source:mscorlib Stack message: at System.Convert.FromBase64String(String s) at System.Web.
Time of Update: 2018-12-05
程式碼搜尋平台:SourceForge一個非常優秀的有多年歷史的老牌開源項目共用平台。CodePlex 微軟的一個開源項目分享平台,你可以在上面建立項目同全世界分享。Google Code Search Google的程式碼搜尋引擎,憑藉自己的搜尋技術優勢,可想而知這也是一個優秀的網站。CodeProject 一個不錯的代碼分享網站,裡面含有大量的原始碼和DemoByetMyCode
Time of Update: 2018-12-05
在導覽列中加上分段控制項是很常用的做法,效果如下:UISegmentedControl *segmentedControl=[[UISegmentedControl alloc] initWithFrame:CGRectMake(80.0f, 8.0f, 300.0f, 30.0f) ]; [segmentedControl insertSegmentWithTitle:@"最新上架" atIndex:0 animated:YES]; [segmentedControl
Time of Update: 2018-12-05
#import "UITestViewController.h"NSTimer *timer;@implementation UITestViewController- (void)hideAlert:(NSTimer *)sender{ UIAlertView *alert = [sender userInfo]; [alert dismissWithClickedButtonIndex:0 animated:YES];}- (void)viewDidLoad {