java and javascript 问题请教,有包子# Java - 爪哇娇娃
l*0
1 楼
The following code written in JAVA should go to a website and download the
html and parse the contents to find the distance between 2 addresses.
But my problem is , The website uses Javascript to return the value of the
distance which JAVA cannot see it when it downloads the html. It's said I
should call the JAVAscript in my JAVA code which I have no clue.
code:
import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.regex.*;
html and parse the contents to find the distance between 2 addresses.
But my problem is , The website uses Javascript to return the value of the
distance which JAVA cannot see it when it downloads the html. It's said I
should call the JAVAscript in my JAVA code which I have no clue.
code:
import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.regex.*;