English 中文(简体)
JavascriptMVC的断言性功能是什么?
原标题:What is JavascriptMVC s assertEqual function?

I m a total noob to JavascriptMVC so I m go through the tutorials. 但我不得不说,我确信非常简单,完全混淆了我。 在某些比较理论中,它们参考了assertEqual()。 每当我试图在一个杰夫环境中操作时,我的解冻工具告诉我,它就能够找到<条码>。 我失踪了什么? 此处与使用<条码>的示例链接:

http://javascriptmvc.com/docs.html#!mvc.

The first reference to it is in the code under the Instantiation sub heading. Thanks!

最佳回答

他们只是举坏例子。 它应当说明,有些东西与其他东西一样。

缩略语 将会

function assertEqual(a, b) {
  if (a !== b) {
    throw new Error( values are not equal );
  }
}
问题回答

我访问了这一联系——我认为它是文件的一个典型。 Try assertEqual





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签