1

i have been following an online example available at fiddle. It clearly shows how to query javascript objects using sql queries. this is the exact situation for me.

However, the problem comes in when i try to run this fiddle example in my asp.net project.

as per the below link [https://github.com/agershun/alasql/wiki/install]

i have tried adding :

<script src="alasql.js"></script>

in the head tag along with its js files in my project

I also added(for another try)

also

<script src="alasql.min.js"></script>

But upon debugging the project i get the below error: Uncaught ReferenceError: alasql is not defined

and, when i view page source no such link comes up which i provided in my html page head tag.

4

1 回答 1

1

您需要两种解决方案之一。

  1. 与您alasql.min.js的 html 位于同一文件夹中

或者

  1. 包含脚本

     <script src="http://cdn.jsdelivr.net/alasql/0.7/alasql.min.js"></script>
    
于 2016-03-14T23:39:28.590 回答