A simple remark, as follows:
The referenced jquery is as follows:
<script type= "Text/javascript" language= "JavaScript" src= "~/js/jquery-1.2.6.js" ></script>
<script type= "Text/javascript" language= "JavaScript" src= "~/js/jquery-1.2.6-vsdoc.js" ></script>
I use the following statement to make an error : (As for the reason I'm not sure, let me know if you have a clear problem)
1. Alert ($ (' #test '));
2. Alert ($ (' #test '). src);
After the "~" is removed, it is tantamount to removing the smart tip, after which the jquery reference is as follows:
<script type= "Text/javascript" language= "JavaScript" src= "/js/jquery-1.2.6.js" ></script>
<script type= "Text/javascript" language= "JavaScript" src= "/js/jquery-1.2.6-vsdoc.js" ></script>
Use $ (' #test '). The SRC statement does not error, but does not get an IMG address.
1. Alert ($ (' #test ')); Tip [Object].
2. Alert ($ (' #test '). src); Hint undefined.
Finally, use $ (' #test ') [0].SRC to Obtain an IMG address. (no in-depth studies have been carried out, but only the phenomenon is now known.) )
The above jquery get img The src value of a simple example is small series to share all the content, hope to give you a reference, but also hope that we support the cloud habitat community.