为什么我无法导出此表

时间:2016-12-29 09:15:42

标签: javascript jquery node.js

这里我有一个大表,当我点击导出然后它将转到下一个标签

data:application/vnd.ms-excel;filename=exportData.doc;base64,PGh0bWwgeG1sbnM6bz0ndXJuOnNjaGVtYXMtbWljcm9zb2Z0LWNvbTpvZmZpY2U6b2ZmaWNlJyB4bWxuczp4PSd1cm46c2NoZW1hcy1taWNyb3NvZnQtY29tOm9mZmljZTpleGNlbCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnL1RSL1JFQy1odG1sNDAnPjxoZWFkPjwhLS1baWYgZ3RlIG1zbyA5XT48eG1sPjx4OkV4Y2VsV29ya2Jvb2s+PHg6RXhjZWxXb3Jrc2hlZXRzPjx4OkV4Y2VsV29ya3NoZWV0Pjx4Ok5hbWU+e3dvcmtzaGVldH08L3g6TmFtZT48eDpXb3Jrc2hlZXRPcHRpb25zPjx4OkRpc3BsYXlHcmlkbGluZXMvPjwveDpXb3Jrc2hlZXRPcHRpb25zPjwveDpFeG..............

.............非常长的base64字符串........

显示上述base64代码并且不执行任何操作(i,e no download

实际上我正在使用tableexport pluging

这是我的整个代码



$(document).ready(function(){

  $('#export').click(function(){
      $('#table').tableExport({type:'excel',escape:'false'});
  });

});

<script src="https://cdnjs.cloudflare.com/ajax/libs/TableExport/3.3.7/js/tableexport.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Base64/1.0.0/base64.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<p id="export">EXPORT</p>

<table id="table"><thead><tr><th>Sl.No</th><th>Listing</th><th>Location</th><th>Sales Description</th><th>Business Category</th><th>Sale Price</th><th>Revenue</th><th>Cash Flow</th></tr></thead><tbody><tr><td>1</td><td>10+ Years Branded Hardware, Networking And Software Institute For Sale</td><td>Bangalore, Karnataka, India</td><td>We are looking for a buyer to buy out our Education Training Institute. We are into IT Training Courses and we are well established brand in India and it is operational since 10 years.
We are profita</td><td>Service Franchise Resales Business For Sale, Computer Training Business For Sale, Information Technology Business For Sale</td><td>INR 1m to 5m</td><td>INR 5m &amp; above</td><td>INR 1m to 5m</td></tr><tr><td>2</td><td>Telecommunication Company For Sale</td><td>Hyderabad, Andhra Pradesh, India</td><td>Telecommunication Franchise located in populated area of Hyderabad for sale. Running for the last 1 year. Scope to earn high income with hard-work. No territorial boundary. Scope is all of AP making i</td><td>Telecommunication Business For Sale, Service Franchise Resales Business For Sale</td><td>INR&nbsp;800,000</td><td>INR under 100k</td><td>not disclosed</td></tr><tr><td>3</td><td>Profitable E-Commerce Business For Sale</td><td>New Delhi, Delhi, India</td><td>Profitable e-Commerce Business for sale.
Site is very popular.
You can easily your own business.
Selling due to lack of time.
Contact for more details.</td><td>E-Commerce Biz Business For Sale, Retail Other Business For Sale, Advertising &amp; Marketing Business For Sale</td><td>INR&nbsp;25,000</td><td>INR&nbsp;200,000</td><td>INR&nbsp;100,000</td></tr><tr><td>4</td><td>Well Reputed IT Company - ISO 20000:2011 Certified For Sale</td><td>Kochi, Kerala, India</td><td>Well Reputed IT Company for sale
It is an ISO 20000:2011 certified and leading technology service provider, delivering complete solutions of IT related products and services. We define our culture in</td><td>Software Business For Sale, Internet Business For Sale, IT Consultancies Business For Sale</td><td>INR&nbsp;7,500,000</td><td>INR&nbsp;1,500,000</td><td>INR&nbsp;5,000,000</td></tr><tr><td>5</td><td>IT Company For Sale</td><td>Tatanagar, Jamshedpur, Jharkhand, India</td><td>Core Business
• Managing Business Processes
• Engineering Projects and Constructions
• Specialized Technical Consultancy – Engineering and Projects
• Irrigation and Water Distribution Sy</td><td>Other Technical Services Business For Sale, IT Maintenance Business For Sale</td><td>INR&nbsp;95,000,000</td><td>INR 1m to 5m</td><td>INR 1m to 5m</td></tr><tr><td>6</td><td>Attractive Consulting Pvt Ltd Firm Name Incorporated In 2005 In Delhi For Sale</td><td>New Delhi, Delhi, India</td><td>We are selling a pvt. ltd .firm, registered in Delhi in 2005 with attractive name with a purpose to deal with IT services. Any interested buyer can contact us.</td><td>IT Consultancies Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>7</td><td>Software Company In Indore For Sale</td><td>Indore, Madhya Pradesh, India</td><td>It's an art of shaping your dreams into a website that will serve as a bridge between your business and your target audience. We conveys your morals  and ethical values that turn around your whole bus</td><td>Software Business For Sale</td><td>INR&nbsp;1</td><td>INR&nbsp;1</td><td>INR&nbsp;1</td></tr><tr><td>8</td><td>Well Established IT Training Center For Rent Or For Sale</td><td>Bangalore, Karnataka, India</td><td>Fully Furnished and Equipped IT Training Center in Rajajinagar – Available For Running on Rent / Purchase.

Well established IT training Center in a busy location is available for those who intere</td><td>IT Consultancies Business For Sale</td><td>INR 1m to 5m</td><td>INR 1m to 5m</td><td>INR under 100k</td></tr><tr><td>9</td><td>Leading Software Company For Sale</td><td>Bhandup, Mumbai, Maharashtra, India</td><td>Leading Software company having expertise in Healthcare software is for sale. Company has well established software products for Hospitals.</td><td>Services Business For Sale, Software Business For Sale</td><td>INR 1m to 5m</td><td>INR 500k to 1m</td><td>INR 1m to 5m</td></tr><tr><td>10</td><td>Application &amp; Database Design And Development For Software Company For Sale</td><td>Bangalore, Karnataka, India</td><td>We sell our distinct method of Application and Database Design particularly useful for Software Startups for quick web-based application development and hosting. We use .NET &amp; MS-SQL Database and deve</td><td>Consultancy Company Business For Sale, Software Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>11</td><td>Software Company In Chennai For Sale</td><td>Chennai, Tamil Nadu, India</td><td>Software Company In Chennai for sale.
Established in 2005.
Business is having high revenue.
Total of 20 employees which 15 of it are Engineers.
Contact for more details.</td><td>Software Business For Sale</td><td>$&nbsp;10,000,000</td><td>$&nbsp;1,200,000</td><td>$&nbsp;5,000,000</td></tr><tr><td>12</td><td>Email Lists UK - UK Email Database Provider For Sale</td><td>Hyderabad, Andhra Pradesh, India</td><td>Offers the Best database of UK business, directory, email database, B2B email lists, UK business email list and company database. Get best prices of UK email List. Buy European business mailing email</td><td>Sales Business For Sale, Software Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>13</td><td>An IT Company With Live Projects For Sale</td><td>Palai, Kerala, India</td><td>An IT Company for sale.
Data Processing and Data Entry Projects are up with live projects running.
Established in 2014.
Staff: 24 employees
Open 24 hours
Reason for selling: Moving abroad
Contac</td><td>Services Business For Sale, Information Technology Business For Sale, Internet Business For Sale</td><td>INR&nbsp;5,000,000</td><td>INR 100k to 250k</td><td>INR 100k to 250k</td></tr><tr><td>14</td><td>Private Limited Software Company For Sale</td><td>Thiruvananthapuram, Kerala, India</td><td>The company established in the year 2008, and we were into Web Design and Application Development. The company is now available for sale with its name, registration (Private Limited) and products (if</td><td>Software Business For Sale, Websites Business For Sale</td><td>$&nbsp;25,000</td><td>not applicable</td><td>not applicable</td></tr><tr><td>15</td><td>Looking For Investor - Running IT Company In Coimbatore - Business Not For Sale</td><td>Coimbatore, Tamil Nadu, India</td><td>Running IT Company looking for an investor.
Established in 2008
Total size of 700 square feet
Looking to go to the next level of expansion.
Contact for more details</td><td>Software Business For Sale</td><td>INR 1m to 5m</td><td>INR 1m to 5m</td><td>INR 1m to 5m</td></tr><tr><td>16</td><td>ERP Software With Source Code For Sale</td><td>Thane, Maharashtra, India</td><td>Oracle Database / Forms / Report [11g] based ERP Software with Source Code for sale
Modules:
GL / Finance
Fixed Asset
Purchase &amp; Payable
Sales &amp; Receivable
Stock &amp; Inventory
M</td><td>Software Business For Sale, Computer Business For Sale</td><td>INR 500k to 1m</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>17</td><td>Cloud Based Manufacturing ERP Business Software With Source Code For Sale</td><td>Bangalore, Karnataka, India</td><td>For sale is a Bangalore based Software Consultancy and Development firm, which started in 2006 to offer IT solutions. Its primary focus is to provide software and solutions to the Engineering Industri</td><td>Software Business For Sale</td><td>$ 250k to 500k</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>18</td><td>E - Commerce Marketplace Website - Completely Setup &amp; Running Business For Sale</td><td>Mumbai, Maharashtra, India</td><td>We have Completely running &amp; setup website for sell. Our website is totally setup &amp; we are looking to sell this business because we have limitd funding. Our ecommerce portal is completely setup with h</td><td>E-Commerce Biz Business For Sale, Information Technology Business For Sale, Websites Business For Sale</td><td>INR&nbsp;1,500,000</td><td>INR under 100k</td><td>INR under 100k</td></tr><tr><td>19</td><td>Drones For Sale</td><td>New Delhi, Delhi, India</td><td>Home Verticals Robotics Drone

A drone, in a technological context, is an unmanned aircraft. 

Drones are more formally known as unmanned aerial vehicles (UAV). Essentially, a drone is a flying ro</td><td>Computer Business For Sale</td><td>$ under 100k</td><td>$ 250k to 500k</td><td>$ 100k to 250k</td></tr><tr><td>20</td><td>An IT / ITES Company In Chennai For Sale</td><td>OMR IT Corridor, Chennai, Tamil Nadu, India</td><td>Acquire the company which is one of the top E - Publishing companies in Chennai. The company is serving international publishers, universities and authors, has good international exposure, brand aware</td><td>Information Technology Business For Sale, Advertising &amp; Marketing Business For Sale, Publishing Business For Sale</td><td>No Price</td><td>INR&nbsp;23,200,000</td><td>not disclosed</td></tr><tr><td>21</td><td>Software Testing Training For Sale</td><td>Mohali, Punjab, India</td><td>Software testing is an investigation conducted to provide stakeholders with information about the quality of the product or service under test. Software can also provide an objective, independent view</td><td>Software Business For Sale, Computer Training Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>22</td><td>CCTV / IT Networking And Services Looking for Business Partners And Not For Sale</td><td>Hyderabad, Andhra Pradesh, India</td><td>Looking for Business partners and entrepreneurs who have the experience in IT Networking and Services. Should have experience in LAN, WAN, CCTV and WiFi (i.e., structured wiring, routers, switches, ga</td><td>Networks Business For Sale, IT Maintenance Business For Sale</td><td>INR under 100k</td><td>INR under 100k</td><td>INR under 100k</td></tr><tr><td>23</td><td>Popular Broadband Service Provider For Sale</td><td>Bangalore, Karnataka, India</td><td>We are one and half year broadband service provider having more than 120+ satisfied customers.
Completely 30+ fiber port.
Battery backup at customer's place.
Secured and safe box.
Every month refe</td><td>Internet Business For Sale, Networks Business For Sale</td><td>INR 100k to 250k</td><td>INR under 100k</td><td>INR 100k to 250k</td></tr><tr><td>24</td><td>RFID/Embedded Product &amp; Solutions Development Company For Sale</td><td>Bangalore, Karnataka, India</td><td>Various RF/MW Products &amp; solutions have been developed.
Solutions include - Hardware, Middleware &amp; Software.
One of the successful brands in the RFID product space in India.
Having more than 25 key</td><td>Other Technical Services Business For Sale, Information Technology Business For Sale</td><td>$ 100k to 250k</td><td>$ 100k to 250k</td><td>not disclosed</td></tr><tr><td>25</td><td>Well Developed IOS Games For Sale</td><td>Hyderabad, Andhra Pradesh, India</td><td>Well developed IOS games profile along with app store credintials for sale.
Established in 2014.
Contact the seller for details.</td><td>Entertainment &amp; Fun Business For Sale, Information Technology Business For Sale</td><td>INR&nbsp;100,000</td><td>INR&nbsp;20,000</td><td>INR&nbsp;5,000</td></tr><tr><td>26</td><td>Well Established Web Based Healthcare Software Development Company For Sale</td><td>Pune, Maharashtra, India</td><td>Establishing itself as brand in the healthcare industry 
An ISO 9001:2008 &amp; ISO 27001:2013 Certified Company, established in 2001. Company has created and delivered comprehensive web based solutions</td><td>Health Care Business For Sale, Information Technology Business For Sale</td><td>$&nbsp;7,400,000</td><td>$&nbsp;592,022</td><td>$&nbsp;444,016</td></tr><tr><td>27</td><td>Website Design And Web Based Product Development Company For Sale</td><td>India</td><td>I am an Entrepreneur of Software Development Company for the past 14+ years &amp; in web related services and products. I have already invested more than one million dollars &amp; developed international qual</td><td>Web Design &amp; Development Business For Sale, Information Technology Business For Sale, E-Commerce Biz Business For Sale</td><td>$ under 100k</td><td>$ 1m to 5m</td><td>$ 1m to 5m</td></tr><tr><td>28</td><td>Tuition &amp; Computer Training Institute For Sale</td><td>Bangalore, Karnataka, India</td><td>I want to sell a running Tuition &amp; Computer Training Institute in Bangalore. Institute was started in 2011.

Very good office/classroom infrastructure. There are 3 class room and 1 reception room.</td><td>Education &amp; School Related Business For Sale, Computer Business For Sale</td><td>INR 100k to 250k</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>29</td><td>Small Software Company In Hyderabad &amp; Nellore With 45 Clients For Sale</td><td>Hyderabad, Andhra Pradesh, India</td><td>Small software company in Hyderabad and Nellore. 
Established in 2014 with 4 employees.
Company has 45 clients, local projects, yearly AMC, etc.
Please contact the seller for more details.</td><td>Software Business For Sale</td><td>INR&nbsp;1,000,000</td><td>INR under 100k</td><td>INR under 100k</td></tr><tr><td>30</td><td>Telecom Franchise In India For Sale</td><td>Bangalore, Karnataka, India</td><td>A telecom centric enterprise head-quartered in Bangalore, India with a vision to revolutionize the IP PBX market with the Open Source Technology. We are the fastest growing brand in unified communicat</td><td>Service Franchise Resales Business For Sale, Telecommunication Business For Sale</td><td>$&nbsp;2,000</td><td>$ under 100k</td><td>$ under 100k</td></tr><tr><td>31</td><td>Web Development &amp; Digital Marketing Company For Sale</td><td>Bengaluru, Karnataka, India</td><td>A profitably running web development, digital marketing &amp; very strong product base with all new equipment &amp; ready to move office for sale and with excellent balance sheet. Easy money no overhead. With</td><td>Web Design &amp; Development Business For Sale, Advertising &amp; Marketing Business For Sale, Software Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>32</td><td>Takeover: SMS / E-Mail / Voice Service Provider Company With Infrastructure Goodwill &amp; Client Base For Sale</td><td>Navi Mumbai, Maharashtra, India</td><td>Looking for takeover of SMS/E-Mail/Voice Provider Company with infrastructure goodwill &amp; client base. 
Maharashtra based company.</td><td>Services Business For Sale, Telecommunication Business For Sale</td><td>INR 100k to 250k</td><td>INR 100k to 250k</td><td>INR 100k to 250k</td></tr><tr><td>33</td><td>Software Business: Makes 2 Cr Revenue For Sale</td><td>Coimbatore, Tamil Nadu, India</td><td>Only Serious Enquiries, Easy money no overhead. All employees are here for 3 years and all client contracts for years. Unlimited potential. Selling this due to retiring. No need for technology or soft</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>INR 5m &amp; above</td><td>INR 5m &amp; above</td><td>INR 5m &amp; above</td></tr><tr><td>34</td><td>Running IT Service Business For Sale</td><td>Bangalore, Karnataka, India</td><td>Running IT service business with sales agreement of 600+ Million USD valid for 5 years with guaranteed revenue of minimum 30 Million USD with leading IT product organizations. Having 1000+ part time c</td><td>Software Business For Sale, Sales Business For Sale, Marketing Business For Sale</td><td>INR&nbsp;30,000,000</td><td>INR&nbsp;1,200,000</td><td>INR&nbsp;1,200,000</td></tr><tr><td>35</td><td>A Private Limited It Company With Its Projects For Sale</td><td>Kozhikode, Kerala, India</td><td>A Private limited IT company formed in the year 2013 for sale with its projects like which is a social networking site..</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>INR 1m to 5m</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>36</td><td>Business In Chennai, India For Sale</td><td>Chennai, Tamil Nadu, India</td><td>Business running from 1986, HQ at Chennai,India. As leaders incomputer science education in schools in India, Srilanka, Nepal established education materials for syudents in 80s and 90s. Currently est</td><td>Information Technology Business For Sale, Computer Training Business For Sale</td><td>INR 5m &amp; above</td><td>INR 1m to 5m</td><td>not disclosed</td></tr><tr><td>37</td><td>Established Web Development Company In Noida For Sale</td><td>Noida, Uttar Pradesh, India</td><td>This is a web development company for sale, specializing in ecommerce website development. 

We have very good presence on search engines for eCommerce related enquiries in India.

We also provide</td><td>Information Technology Business For Sale, Internet Business For Sale, IT Manufacturing Business For Sale</td><td>INR&nbsp;2,500,000</td><td>INR&nbsp;4,800,000</td><td>not applicable</td></tr><tr><td>38</td><td>Website Based Software For ERP, Inventory, Transporter, Logistic, Courier Company, Warehousing, CRM For Sale</td><td>Mumbai, Maharashtra, India</td><td>We develop Website based software as per client’s requirements. 

With these software clients offices / factories at different locations can do the data entry and view reports at the same time. Th</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>39</td><td>Running Business For Sale</td><td>Baner, Pune, Maharashtra, India</td><td>1)Process set up in all department

2) SAP client available for 3 year contract

3) Marketing department available

4) Consultant staff

5) HR &amp; Account</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>INR&nbsp;30,000,000</td><td>INR&nbsp;2,000,000</td><td>INR&nbsp;300,000</td></tr><tr><td>40</td><td>Hospital Management Software Company Looking Out For Investments With Partial Stake For Sale</td><td>Bangalore, Karnataka, India</td><td>- Successfully established products in Healthcare segment &amp; selling software products to well established hospitals in Bangalore (Karnataka) &amp; south India
- Fully developed Hospital Information Manag</td><td>Information Technology Business For Sale, Health &amp; Beauty Supplies Business For Sale</td><td>INR&nbsp;15,000,000</td><td>INR under 100k</td><td>INR under 100k</td></tr><tr><td>41</td><td>A Reputed Computer Training And Software Development Company For Sale</td><td>Chennai, Tamil Nadu, India</td><td>A reputed computer training institute with software development for sale in Choolaimedu.

Sqft: 500 sf, 2 class room, 1 lab, 1 Admin room, 5 Computer with fully furnished with glass 

Registered i</td><td>Computer Training Business For Sale, Software Business For Sale</td><td>not disclosed</td><td>not disclosed</td><td>not disclosed</td></tr><tr><td>42</td><td>9 Years Old Private Limited Company In Bangalore For Sale</td><td>Bengaluru, Karnataka, India</td><td>5 year old Private Limited company without any liability for sale. No Loans and Defaulting on any payments. Running online and offline business, with regular filings done and with both VAT and Service</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>No Price</td><td>$ under 100k</td><td>$ under 100k</td></tr><tr><td>43</td><td>Business Partnership Offer In Startup IT Company For Sale</td><td>New Delhi, Delhi, India</td><td>Hi, I'm StarPankaj and I've started a Software &amp; Portal based business in Delhi. I already have a ready office, website near completion and one ERP (School Automation Software) ready with me. Few more</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>INR 100k to 250k</td><td>INR under 100k</td><td>INR under 100k</td></tr><tr><td>44</td><td>Profitable IT Company For Sale</td><td>New Delhi, Delhi, India</td><td>I want to sell 9 year old IT Company. Please contact for details.</td><td>Software Business For Sale, Information Technology Business For Sale</td><td>$ under 100k</td><td>$ 250k to 500k</td><td>not disclosed</td></tr><tr><td>45</td><td>Franchise Opportunity With Idea Cellular Limited For Sale</td><td>Vadodara, Gujarat, India</td><td>Looking for business partners in Idea Cellular limited for Sale of Postpaid connections.
Earning starts from 40000 to 1.5 lakh per month</td><td>Retail Franchise Resales Business For Sale, Telecommunication Business For Sale</td><td>$ under 100k</td><td>$ 100k to 250k</td><td>$ 100k to 250k</td></tr></tbody></table>
&#13;
&#13;
&#13;

问题:是什么原因,为什么我无法下载?

请提前帮助我

1 个答案:

答案 0 :(得分:1)

同样的问题也发生在我身上。

  

我可以看到有一个特殊的角色

这使得渲染变得困难base.64你可以做什么,将它们全部删除,以便渲染成base64

转到每个td并删除它们

$('td').text(function(i, t) {
    return t.replace(//g, '');
  });

如果还有一些character导致问题,那么你可以这样做

$('td').text(function(i, t) {
    return t.replace(//g, '').replace(/character/,''); // so on .....
  });