Test (). A ('Ilemm A.'). B ('IlemmB')

for example, if you want to use test (). A ("Isimm A."). B ("Ilemm B"), output how test an I"m A b I"m B should define test?.

Mar.09,2021

function test () {
  return {
    callInfo: 'test',
    a (arg) {
      this.callInfo += ' ' + arguments.callee.name + ' ' + arg
      return this
    },
    b (arg) {
      return (this.callInfo += ' ' + arguments.callee.name + ' ' + arg)
    }
  }
}
test().a('I\'m A.').b('I\'m B')


   function test() {
        function a(){
            console.log(" a I'm A ")
            return this
        }
        function b(){
            console.log("b I'm B")
            return this
        }
        console.log('test')
        return {
            a: a,
            b: b
        }
    }
    test().a().b()

jquery is the big brother in this respect, you can refer to the source code, but this is enough for you to use
downstairs answer is the correct solution.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e63286-45a24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e63286-45a24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?