fw.qq.com/ipaddress

本文介绍了一种利用JavaScript在网页中动态显示用户IP地址的方法。通过引入外部JS文件,实现IP数据的获取与展示,适用于需要了解访客地理位置信息的场景。
<html>
<head>
<script type=text/javascript src=http://fw.qq.com/ipaddress charset="gb2312"></script>

<script type=text/javascript>

document.write(IPData.join(' '));

</script>
</head>
<body>
</body>
</html>

 

aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_conn.o cpe_conn.c aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_epoll.o cpe_epoll.c In file included from cpe_epoll.c:1: /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/include/sys/errno.h:1:2: warning: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h> | ^~~~~~~ aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_fw.o cpe_fw.c cpe_fw.c: In function 'CpeFwRule': cpe_fw.c:46:34: warning: '%d' directive writing between 1 and 3 bytes into a region of size 2 [-Wformat-overflow=] 46 | sprintf(Action, "%d", cpi->rule_table.rule[i].action); | ^~ cpe_fw.c:46:33: note: directive argument in the range [0, 255] 46 | sprintf(Action, "%d", cpi->rule_table.rule[i].action); | ^~~~ cpe_fw.c:46:17: note: 'sprintf' output between 2 and 4 bytes into a destination of size 2 46 | sprintf(Action, "%d", cpi->rule_table.rule[i].action); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_http.o cpe_http.c cpe_http.c: In function 'CpeParesHandle': cpe_http.c:61:13: warning: unused variable 'num' [-Wunused-variable] 61 | int num = strstr(mm->resp,"</Root>") - mm->resp; | ^~~ cpe_http.c: In function 'CpeUrlToken': cpe_http.c:287:42: warning: the comparison will always evaluate as 'false' for the address of 'passwd' will never be NULL [-Waddress] 287 | if(CpI->TokenInfo.passwd == NULL) | ^~ In file included from ../inc/cpe_http.h:6, from cpe_http.c:4: ../inc/cpe_main.h:112:14: note: 'passwd' declared here 112 | char passwd[17]; | ^~~~~~ aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_main.o cpe_main.c aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_sql.o cpe_sql.c aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_sql_recover.o cpe_sql_recover.c aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_timer.o cpe_timer.c aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_xml.o cpe_xml.c cpe_xml.c: In function 'Free_CpeRegisterInfo': cpe_xml.c:102:41: warning: the comparison will always evaluate as 'true' for the address of 'RegInfoTime' will never be NULL [-Waddress] 102 | if(CpeRegisterInfo->RegInfoTime != NULL){ | ^~ In file included from cpe_xml.c:16: ../inc/cpe_xml.h:55:14: note: 'RegInfoTime' declared here 55 | char RegInfoTime[11]; //注册时间 | ^~~~~~~~~~~ aarch64-openwrt-linux-gcc -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -c -o cpe_xml_dump.o cpe_xml_dump.c aarch64-openwrt-linux-gcc cpe_conn.o cpe_epoll.o cpe_fw.o cpe_http.o cpe_main.o cpe_sql.o cpe_sql_recover.o cpe_timer.o cpe_xml.o cpe_xml_dump.o -I ../inc -I/home/yzf/host/include/ -g -Wall -DARMFW -o xml -ldl -L../lib -lxml2 -lcurl -lnet_handle -lsqlite3 -lwhitelist_identifier /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_fw.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_http.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_main.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_sql.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_sql_recover.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_timer.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_xml.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here /home/yzf/toolchain-aarch64_generic_gcc-12.3.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/12.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cpe_xml_dump.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: multiple definition of `ls'; cpe_conn.o:/home/yzf/Nearlink/wgwl/xml_wg/src/../inc/cpe_log.h:16: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:29: xml] Error 1
最新发布
08-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值