2020 12 05 今天遇到的乙個坑

2021-10-11 11:02:04 字數 424 閱讀 7882

public class aistatemove : aistate

{ [space(10)]

// go to this state if passive event occures

public aistate passiveaistate;

// end point for moving

[hideininspector]

public transform destination;

今天調**的時候,遇到了乙個小坑,記錄下來。

destination作為乙個transform物件,裡面的值經常被改變,我試圖追蹤destination.position的值,結果斷點打在destination.set()上,一直沒發現誰改變的destination.position,真的太蠢。

今天遇到乙個亂碼問題

用ecplise自動生成的servlet,會自動帶有這麼一句話 他被放在了 request.setcharacterencoding utf 8 response.setcharacterencoding utf 8 的前面,然後 的時候 request.getrequestdispatcher i...

今天遇到的乙個算發

encode 一字串 如果字元小於0則直接拷貝 如果是數字則拷貝當前數字加乙個後繼字串 如果是其他字母等直接拷貝 如果是 下劃線則轉換成 ul decode 解碼 encode 部分 strold this.textbox1.text strleng strold.length char a str...

今天遇到乙個奇怪的問題

想實現乙個使用者訪問頁面,得到使用者的外網位址 在公司上。程式是沒問題。正常獲取使用者的位址 測試 哪位遇到這樣的問題過。如下 string ip request.getheader x forwarded for if ip null ip.length 0 unknown equalsignor...