首页 > 代码库 > phantomjs和angular-seo-server实现angular单页面seo

phantomjs和angular-seo-server实现angular单页面seo

1、下载phantomjs,并配置环境变量为   eg:E:\phantomjs-2.1.1-windows\bin

2、下载angular-seo-server

3、windows下:cmd eg:phantomjs --disk-cache=no D:\nginx-1.10.0\angular-seo-server.js 9090 http:127.0.0.1/fengdai_pc

4、git命令下:eg:curl ‘http://localhost:9090/?_escaped_fragment_=/loanList‘

 

phantomjs和angular-seo-server实现angular单页面seo