-1
我有一个函数说如何获取作为参数传递给javascript中的函数的句子和单词的数组?
var init = function(data){
all sentences: " I have to get all the sentences and return an array containing all sentences"
all words : "this method should return an array of words in ‘Data’ when there is no parameter passed in. Optionally, when there is a parameter passed in that is a number, return the words in the sentence indicated by the input parameter"
all reverse sentences: "this method is the same as all Sentences, except it should return the sentences in reverse order"
reverse words :" same as all words but in reverse order"
countWordsBeginningWith:" this method should return the amount of words that begin with an inputted string. The optional second parameter should determine what sentence the words come from when present."
感谢
是这个家庭作业? – drudge 2011-02-19 00:40:01
你究竟在这里要做什么? – 2011-02-19 00:42:38