哆哆 发表于 2013-5-19 22:56
7 t5 p& G: R, A8 I/ W我目前还没遇到这种情况 x7 u7 ~' t u
这种情况应该是其安全考虑,编程的时候过滤了特殊符号6 X/ ^6 X5 ]2 ]) v
不过我想,如果是这种情况, ...
- J2 Q' u& x V D# Broboform教程写到大小写敏感,如果字段名包含这些 (, . - ! ?)特殊字符,robo会先移除这些特殊字符再进行匹配。上面的abc_d,移除后就是abc d这样子了,按理应该可以匹配到的。0 u* A# z0 C- {6 l, I
现在问题是表单上有多个select控件时,如年月日三个select控件,( o) Z0 W0 h0 |4 l
$ B' s5 n1 k! k+ T只能自动填写第一个,后面的月、日不能自动填写。+ v' n3 h& i0 p- ?
下面是对应的HTML代码,我想字段名应该没填错吧,年月日三个字段名分别是bday_y,bday_m,bday_d- <select name='bday_y' class='select'>
7 S# K% Q+ i2 R" \' ? - <option value=''>Year</option>
' T3 G" v ^; F+ D- u4 V8 Q - <option value='2013'>2013</option>1 H+ ]% C' B% w" F+ A- q& u/ I
- <option value='2012'>2012</option> ^8 Y2 J5 O2 H# O/ |+ o3 \
- <option value='2011'>2011</option>, Q3 t$ n7 Y$ v' s
- <option value='2010'>2010</option>
1 A$ s, o8 j. m - <option value='2009'>2009</option>- |( U- Z1 y! P; M
- <option value='2008'>2008</option>
! s; Z2 `. L, d" c1 _) S, j. |* x - <option value='2007'>2007</option>2 F# U7 g$ S* ]: g; S4 w* [( c3 l" q
- <option value='2006'>2006</option>, S, F+ ^+ r" X' M0 D4 u, b
- <option value='2005'>2005</option>
; {- G) B0 i' q1 Q - <option value='2004'>2004</option>5 Z8 l2 n% r' K, k8 J i) H
- <option value='2003'>2003</option>
) B; b' c: E `1 R/ o( W - <option value='2002'>2002</option>
( @2 S) a" i9 F% k - <option value='2001'>2001</option>( n; C6 ` q: ]
- <option value='2000'>2000</option>
3 {- k& c# V" v: ~; G! I$ L0 U - <option value='1999'>1999</option>- T' a: L2 ]+ y! l j0 ^' H
- <option value='1998'>1998</option>
3 e S9 E7 N: v5 m3 b - <option value='1997'>1997</option>
9 d" V! i+ i9 y6 Z+ b - <option value='1996'>1996</option>( J; c' V6 W- N, J9 ?
- <option value='1995'>1995</option>
7 N! h0 }/ ]+ T$ W t {* ` - <option value='1994'>1994</option>
; W: m$ r* _2 j' D5 ? - <option value='1993'>1993</option>% T ]# o' a, g$ Z
- <option value='1992'>1992</option>( {8 E8 R1 n5 h9 V7 w0 E$ T& n
- <option value='1991'>1991</option>
: ]2 ?$ X. j1 A/ E$ p- |. ? - <option value='1990'>1990</option>0 ^0 z4 H( Q8 x% G- S9 y% T
- <option value='1989'>1989</option>
% b7 S- n7 j' t! `; [ - <option value='1988'>1988</option>
' y0 N' {; i8 f9 |0 c# B - <option value='1987'>1987</option>1 m- T: J& F# J, F
- <option value='1986'>1986</option>) }6 \1 s3 a& R; [ Q, [
- <option value='1985'>1985</option>
. s v4 x2 @/ }3 m, n - <option value='1984'>1984</option>
N) ?% c$ d/ w, }" L - <option value='1983'>1983</option>
* }2 I7 K- E/ S, A9 ~- O7 K/ t - <option value='1982'>1982</option>
9 z' E9 R9 C, y& K6 M: {. h7 Z. C3 O - <option value='1981'>1981</option>
! ^! C% _! \; {3 o$ l" O1 K - <option value='1980'>1980</option>
. A O" Y) ~: \$ ]' Z* s$ ^ - <option value='1979'>1979</option>2 `: H1 \5 Y! ]9 T J5 l
- <option value='1978'>1978</option>- F5 F# c8 m; x9 v! F) \0 [
- <option value='1977'>1977</option>
6 R! @3 \1 ~5 a) S( Q - <option value='1976'>1976</option>7 e, L; s/ F& C
- <option value='1975'>1975</option>
, ~6 k; y5 z! q - <option value='1974' selected='selected'>1974</option>* m u/ Z* J9 A. U
- <option value='1973'>1973</option>
' q5 G. J) @9 A8 w - <option value='1972'>1972</option>" A( Q& r* c" P" H' p
- <option value='1971'>1971</option>5 r4 N! K4 x% n: F; ~) k$ j/ I! W/ a
- <option value='1970'>1970</option>
( `$ W9 h' b5 z5 I- X- s - <option value='1969'>1969</option>
8 |4 w7 K2 }0 `% T- {5 Z - <option value='1968'>1968</option>, P; a! C9 P) F/ x8 D" d
- <option value='1967'>1967</option>& R* |7 @( l8 V# S" F
- <option value='1966'>1966</option>* y! r/ j8 C- ]; k: V" m, O, t. H
- <option value='1965'>1965</option>
& E4 m1 Y$ M. p - <option value='1964'>1964</option>1 i$ @# m4 V8 m. c2 t7 I
- <option value='1963'>1963</option>9 D7 S; }2 q! y( g8 d2 G( N6 f! X, H
- <option value='1962'>1962</option>
3 L- ^' V* G: o4 V- r - <option value='1961'>1961</option>, ^# [1 T: Y/ z& w
- <option value='1960'>1960</option>, b2 D3 g6 p0 H# |
- <option value='1959'>1959</option>5 e. i+ p# W/ [, Q) T( t* T
- <option value='1958'>1958</option>
6 D$ |2 ~6 |- t% N; ]! b+ O - <option value='1957'>1957</option>) j+ T$ A$ k I U/ ]/ L% z
- <option value='1956'>1956</option>1 @* ^7 O# v) z$ X
- <option value='1955'>1955</option>
0 w2 X: X O$ M1 ] - <option value='1954'>1954</option>& m1 ~# g: I# k. ~1 V: n
- <option value='1953'>1953</option>
3 I& f; ^) a3 y8 G: t - <option value='1952'>1952</option>
- G3 Y; V+ v& I4 ~# F - <option value='1951'>1951</option>$ x1 w' N& v6 t5 f. T1 n7 L
- <option value='1950'>1950</option>9 k0 z1 |! d9 o2 ^7 ?+ c
- <option value='1949'>1949</option>' S7 i7 ]. ~1 U/ s6 L9 y
- <option value='1948'>1948</option>5 ?' u4 `, m1 G8 F" l' G$ F
- <option value='1947'>1947</option>
1 N" X+ ^- U N4 k" s - <option value='1946'>1946</option>+ j4 K, d. K3 q% v2 e
- <option value='1945'>1945</option>
7 f. ^9 q8 o. A2 g. Z# N - <option value='1944'>1944</option>2 P, p' K, C1 b9 R7 y B. v
- <option value='1943'>1943</option>3 n6 F4 e% ?1 a0 E2 l. A/ ]0 J# j
- <option value='1942'>1942</option>& K5 |4 S& m8 o" [) s4 `$ O" q
- <option value='1941'>1941</option>7 U3 T; @! M! |" T; C3 {2 Z4 p
- <option value='1940'>1940</option>+ I( r; J$ i6 w+ r3 m, ~7 j+ ]
- <option value='1939'>1939</option>1 K% O6 l4 } Y2 h" L: b
- <option value='1938'>1938</option>6 _: [0 T( M n9 w
- <option value='1937'>1937</option>9 Y- K# l4 E0 W# C8 v- k7 q6 C! ~# T
- <option value='1936'>1936</option>
' M3 C3 a' f' { - <option value='1935'>1935</option>
$ h7 u. B0 J- q. l0 g* | - <option value='1934'>1934</option>
( S5 \2 G2 p& z. \0 ` I - <option value='1933'>1933</option>6 r! B: z% I1 X
- <option value='1932'>1932</option>
/ T& ^0 o; m* |7 g9 \8 ~$ B - <option value='1931'>1931</option>- K$ J" A0 O6 O. q1 e% x- t. D
- <option value='1930'>1930</option>
8 ?8 L4 N ^. ]9 G+ I# h" A4 d: f - <option value='1929'>1929</option>1 {, q$ h% \+ x: l& _
- <option value='1928'>1928</option>
6 \; Z( Y3 q' f0 H# s5 _) K - <option value='1927'>1927</option>
* e: Z8 s5 Z- p1 T - <option value='1926'>1926</option>
u! [* N) C! u; r9 H, { - <option value='1925'>1925</option>
6 l) J/ A8 M4 L$ B - <option value='1924'>1924</option>0 l( L8 c- P" ?, Y7 M5 ~+ J
- <option value='1923'>1923</option>$ h1 p$ U5 q1 b" }- Z
- <option value='1922'>1922</option> I# O0 G/ y9 L$ m& a9 W& s
- <option value='1921'>1921</option>
8 Y& t$ i X! Z9 j, W - <option value='1920'>1920</option>+ |& V6 ^9 ]& j$ ^
- <option value='1919'>1919</option>" `' f/ [) D1 W' l C" V2 m
- <option value='1918'>1918</option>
+ o6 ]: p% v. Y* O, G/ K; T* e - <option value='1917'>1917</option>' `" ~0 d) a- a' v0 [
- <option value='1916'>1916</option>8 k% h4 o2 }% Y) d" ^- d7 f8 q
- <option value='1915'>1915</option>% ~! l: u' O u5 B2 B' l# b3 F
- <option value='1914'>1914</option>
% x! E* G# `6 _2 v; E' O( l1 _ - <option value='1913'>1913</option>
* M8 h8 l$ w2 d$ d. @7 H - <option value='1912'>1912</option>
( x9 k! W; w, K% F, w C E+ ?1 C5 @ - <option value='1911'>1911</option>5 i, B) d7 H0 k/ i( f9 u
- <option value='1910'>1910</option>5 t5 O( I; t+ k3 D5 N
- <option value='1909'>1909</option>
n$ p* H$ Q8 Z w [ - <option value='1908'>1908</option>
/ ?7 R K# U3 c - <option value='1907'>1907</option>( i/ J: s" o5 K5 u- S$ Y8 z" ]- w
- <option value='1906'>1906</option>0 O* r- q8 J2 q% f6 Y# d$ V
- <option value='1905'>1905</option>
5 @) a9 G# o! T' O1 T' ?5 @% l7 d% ^ - </select>
& ? ~7 j' U- m% q- G: ~ - <select name='bday_m' class='select'>, w$ N+ h# j& [% G3 F3 ]) [
- <option value=''>Month</option>
& i; ~. [/ p2 Y; n7 f - <option value='01'>January</option>" W' d& ~* Z' Q
- <option value='02'>February</option>- H" ^& F; J5 e, H7 X
- <option value='03'>March</option>1 n L; a" |; V/ V
- <option value='04'>April</option>9 E( c* S/ u( N- t* p/ S# H: d
- <option value='05'>May</option>5 h+ P; k8 V6 ~* Q8 Q
- <option value='06'>June</option>, U# Z" n* L/ ^! X7 \( Z6 }# \6 f
- <option value='07'>July</option>
# `/ D$ S. F7 d: h - <option value='08' selected='selected'>August</option>
# V/ K) Q$ x( }( X2 ?# _# } - <option value='09'>September</option>% c0 \7 }! U4 U3 c' ~
- <option value='10'>October</option>
7 Y+ [8 o7 J. g+ P - <option value='11'>November</option>% n' f, X" U& w# a* d1 g) o
- <option value='12'>December</option>/ V/ K( l8 P" f6 h# ~
- </select>
$ M( q0 ?8 _# r - <select name='bday_d' class='select'>( } h; y A" S' T
- <option value=''>Day</option>* Z- t% ?! ^0 O0 z$ \7 }
- <option value='31'>31</option>
9 G, B+ p4 ]7 J1 _8 s1 ] - <option value='30'>30</option>" ?& {: j2 [7 ?+ U9 M% e5 E- z1 _! e
- <option value='29'>29</option>: O& o; ^ K+ L" z9 M
- <option value='28'>28</option>; E& i: ^7 `5 M1 R8 J5 N
- <option value='27'>27</option>
u& _0 `, y4 N, K4 M: l# N; D - <option value='26'>26</option>
4 r8 {: B, s2 t - <option value='25'>25</option>
! k4 G6 Z% P, o8 l/ _ - <option value='24'>24</option># b8 k) B: w/ ?3 N
- <option value='23'>23</option>; P; F* I/ s' w; O& J
- <option value='22'>22</option>
( h* r7 E1 K0 U% [, a - <option value='21'>21</option>
, e0 J+ Q& }, L6 f. A - <option value='20'>20</option># R7 f! K: G3 c/ g2 [: D1 o: d& M
- <option value='19'>19</option>
+ \: g1 v& H, } - <option value='18' selected='selected'>18</option>
7 x) }5 \+ |. O- c9 A1 U( ] - <option value='17'>17</option>8 m4 a4 V: x3 k
- <option value='16'>16</option>
3 U* ]9 ~) |8 X, \ - <option value='15'>15</option>
* u5 L1 V$ B* o! m Q" w& v' @ - <option value='14'>14</option> }! K! t! h/ h6 ?! a8 Y. k" k5 T! e9 u
- <option value='13'>13</option>+ C$ i; z3 f9 W. f9 M
- <option value='12'>12</option>- ?/ _/ R+ X& _+ V
- <option value='11'>11</option>
7 V. A. @' ~4 S4 v/ y - <option value='10'>10</option>
) t) Q% k6 r( y' T3 S/ t - <option value='9'>9</option>
' v6 K. |; N$ P1 X0 g - <option value='8'>8</option>
+ l1 H/ d& ~1 r# q5 ~: T - <option value='7'>7</option>' N" R- R( [) q) L
- <option value='6'>6</option>
9 C4 x- F1 h3 Q% r: y) v* n - <option value='5'>5</option>2 I" b" x2 r0 q' Y" ]. Y
- <option value='4'>4</option>6 c C. b# T5 | }: r m. G
- <option value='3'>3</option>
/ w+ Z5 Y; i, J. P N- O - <option value='2'>2</option>
8 j9 z3 h1 B* [ - <option value='1'>1</option>
- a8 N7 J* R( k1 h) g b - </select>
复制代码 |